diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_gc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lj_gc.h b/src/lj_gc.h index 1725c639..6fc88cf9 100644 --- a/src/lj_gc.h +++ b/src/lj_gc.h | |||
@@ -81,8 +81,10 @@ LJ_FUNC void lj_gc_barriertrace(global_State *g, uint32_t traceno); | |||
81 | static LJ_AINLINE void lj_gc_barrierback(global_State *g, GCtab *t) | 81 | static LJ_AINLINE void lj_gc_barrierback(global_State *g, GCtab *t) |
82 | { | 82 | { |
83 | GCobj *o = obj2gco(t); | 83 | GCobj *o = obj2gco(t); |
84 | lua_assert(isblack(o) && !isdead(g, o)); | 84 | lj_assertG(isblack(o) && !isdead(g, o), |
85 | lua_assert(g->gc.state != GCSfinalize && g->gc.state != GCSpause); | 85 | "bad object states for backward barrier"); |
86 | lj_assertG(g->gc.state != GCSfinalize && g->gc.state != GCSpause, | ||
87 | "bad GC state"); | ||
86 | black2gray(o); | 88 | black2gray(o); |
87 | setgcrefr(t->gclist, g->gc.grayagain); | 89 | setgcrefr(t->gclist, g->gc.grayagain); |
88 | setgcref(g->gc.grayagain, o); | 90 | setgcref(g->gc.grayagain, o); |