summaryrefslogtreecommitdiff
path: root/src/lj_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_state.c')
-rw-r--r--src/lj_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_state.c b/src/lj_state.c
index e90359ef..87f2cfe9 100644
--- a/src/lj_state.c
+++ b/src/lj_state.c
@@ -191,6 +191,8 @@ LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
191 L->dummy_ffid = FF_C; 191 L->dummy_ffid = FF_C;
192 setmref(L->glref, g); 192 setmref(L->glref, g);
193 g->gc.currentwhite = LJ_GC_WHITE0 | LJ_GC_FIXED; 193 g->gc.currentwhite = LJ_GC_WHITE0 | LJ_GC_FIXED;
194 g->strempty.marked = LJ_GC_WHITE0;
195 g->strempty.gct = ~LJ_TSTR;
194 g->allocf = f; 196 g->allocf = f;
195 g->allocd = ud; 197 g->allocd = ud;
196 setgcref(g->mainthref, obj2gco(L)); 198 setgcref(g->mainthref, obj2gco(L));