diff options
author | Mike Pall <mike> | 2013-11-05 19:41:21 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-11-05 19:41:21 +0100 |
commit | 5c55b766bd008b60be973b51596f3a72d16b695b (patch) | |
tree | ea95d815d81d8b292366a2d5123eccae58a1cece /src/lj_gc.c | |
parent | 0315b8735286b9a885452cb9477f81384db2d95c (diff) | |
parent | 7b4d5306c7441a373516ee54bd942218f35348c2 (diff) | |
download | luajit-5c55b766bd008b60be973b51596f3a72d16b695b.tar.gz luajit-5c55b766bd008b60be973b51596f3a72d16b695b.tar.bz2 luajit-5c55b766bd008b60be973b51596f3a72d16b695b.zip |
Merge branch 'master' into v2.1
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. */ |