diff options
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r-- | src/lj_gc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c index 572e4710..ddbaa645 100644 --- a/src/lj_gc.c +++ b/src/lj_gc.c | |||
@@ -684,12 +684,14 @@ int LJ_FASTCALL lj_gc_step(lua_State *L) | |||
684 | } while ((int32_t)lim > 0); | 684 | } while ((int32_t)lim > 0); |
685 | if (g->gc.debt < GCSTEPSIZE) { | 685 | if (g->gc.debt < GCSTEPSIZE) { |
686 | g->gc.threshold = g->gc.total + GCSTEPSIZE; | 686 | g->gc.threshold = g->gc.total + GCSTEPSIZE; |
687 | g->vmstate = ostate; | ||
688 | return 1; | ||
687 | } else { | 689 | } else { |
688 | g->gc.debt -= GCSTEPSIZE; | 690 | g->gc.debt -= GCSTEPSIZE; |
689 | g->gc.threshold = g->gc.total; | 691 | g->gc.threshold = g->gc.total; |
692 | g->vmstate = ostate; | ||
693 | return 0; | ||
690 | } | 694 | } |
691 | g->vmstate = ostate; | ||
692 | return 0; | ||
693 | } | 695 | } |
694 | 696 | ||
695 | /* Ditto, but fix the stack top first. */ | 697 | /* Ditto, but fix the stack top first. */ |