mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
3f43f09413
@ -310,7 +310,7 @@ static size_t propagatemark(global_State *g)
|
|||||||
if (gc_traverse_tab(g, t) > 0)
|
if (gc_traverse_tab(g, t) > 0)
|
||||||
black2gray(o); /* Keep weak tables gray. */
|
black2gray(o); /* Keep weak tables gray. */
|
||||||
return sizeof(GCtab) + sizeof(TValue) * t->asize +
|
return sizeof(GCtab) + sizeof(TValue) * t->asize +
|
||||||
sizeof(Node) * (t->hmask + 1);
|
(t->hmask ? sizeof(Node) * (t->hmask + 1) : 0);
|
||||||
} else if (LJ_LIKELY(gct == ~LJ_TFUNC)) {
|
} else if (LJ_LIKELY(gct == ~LJ_TFUNC)) {
|
||||||
GCfunc *fn = gco2func(o);
|
GCfunc *fn = gco2func(o);
|
||||||
gc_traverse_func(g, fn);
|
gc_traverse_func(g, fn);
|
||||||
|
Loading…
Reference in New Issue
Block a user