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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 5c665786..7012dbec 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -689,12 +689,14 @@ int LJ_FASTCALL lj_gc_step(lua_State *L)
689 } while ((int32_t)lim > 0); 689 } while ((int32_t)lim > 0);
690 if (g->gc.debt < GCSTEPSIZE) { 690 if (g->gc.debt < GCSTEPSIZE) {
691 g->gc.threshold = g->gc.total + GCSTEPSIZE; 691 g->gc.threshold = g->gc.total + GCSTEPSIZE;
692 g->vmstate = ostate;
693 return 1;
692 } else { 694 } else {
693 g->gc.debt -= GCSTEPSIZE; 695 g->gc.debt -= GCSTEPSIZE;
694 g->gc.threshold = g->gc.total; 696 g->gc.threshold = g->gc.total;
697 g->vmstate = ostate;
698 return 0;
695 } 699 }
696 g->vmstate = ostate;
697 return 0;
698} 700}
699 701
700/* Ditto, but fix the stack top first. */ 702/* Ditto, but fix the stack top first. */