aboutsummaryrefslogtreecommitdiff
path: root/src/lj_gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r--src/lj_gc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 18c07533..b97fb955 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -631,8 +631,10 @@ void LJ_FASTCALL lj_gc_step_fixtop(lua_State *L)
631 631
632#if LJ_HASJIT 632#if LJ_HASJIT
633/* Perform multiple GC steps. Called from JIT-compiled code. */ 633/* Perform multiple GC steps. Called from JIT-compiled code. */
634int LJ_FASTCALL lj_gc_step_jit(lua_State *L, MSize steps) 634int LJ_FASTCALL lj_gc_step_jit(global_State *g, MSize steps)
635{ 635{
636 lua_State *L = gco2th(gcref(g->jit_L));
637 L->base = mref(G(L)->jit_base, TValue);
636 L->top = curr_topL(L); 638 L->top = curr_topL(L);
637 while (steps-- > 0 && lj_gc_step(L) == 0) 639 while (steps-- > 0 && lj_gc_step(L) == 0)
638 ; 640 ;