mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
b00a0260dd
@ -673,7 +673,8 @@ int LJ_FASTCALL lj_gc_step(lua_State *L)
|
|||||||
lim = (GCSTEPSIZE/100) * g->gc.stepmul;
|
lim = (GCSTEPSIZE/100) * g->gc.stepmul;
|
||||||
if (lim == 0)
|
if (lim == 0)
|
||||||
lim = LJ_MAX_MEM;
|
lim = LJ_MAX_MEM;
|
||||||
g->gc.debt += g->gc.total - g->gc.threshold;
|
if (g->gc.total > g->gc.threshold)
|
||||||
|
g->gc.debt += g->gc.total - g->gc.threshold;
|
||||||
do {
|
do {
|
||||||
lim -= (MSize)gc_onestep(L);
|
lim -= (MSize)gc_onestep(L);
|
||||||
if (g->gc.state == GCSpause) {
|
if (g->gc.state == GCSpause) {
|
||||||
|
@ -781,7 +781,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
|
|||||||
/* Just exit to interpreter. */
|
/* Just exit to interpreter. */
|
||||||
} else if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) {
|
} else if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) {
|
||||||
if (!(G(L)->hookmask & HOOK_GC))
|
if (!(G(L)->hookmask & HOOK_GC))
|
||||||
lj_gc_check(L); /* Exited because of GC: drive GC forward. */
|
lj_gc_step(L); /* Exited because of GC: drive GC forward. */
|
||||||
} else {
|
} else {
|
||||||
trace_hotside(J, pc);
|
trace_hotside(J, pc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user