diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -236,7 +236,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
236 | luaS_init(L); | 236 | luaS_init(L); |
237 | luaT_init(L); | 237 | luaT_init(L); |
238 | luaX_init(L); | 238 | luaX_init(L); |
239 | g->gcrunning = 1; /* allow gc */ | 239 | g->gcstp = 0; /* allow gc */ |
240 | setnilvalue(&g->nilvalue); /* now state is complete */ | 240 | setnilvalue(&g->nilvalue); /* now state is complete */ |
241 | luai_userstateopen(L); | 241 | luai_userstateopen(L); |
242 | } | 242 | } |
@@ -373,7 +373,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
373 | g->ud_warn = NULL; | 373 | g->ud_warn = NULL; |
374 | g->mainthread = L; | 374 | g->mainthread = L; |
375 | g->seed = luai_makeseed(L); | 375 | g->seed = luai_makeseed(L); |
376 | g->gcrunning = 0; /* no GC while building state */ | 376 | g->gcstp = GCSTPGC; /* no GC while building state */ |
377 | g->strt.size = g->strt.nuse = 0; | 377 | g->strt.size = g->strt.nuse = 0; |
378 | g->strt.hash = NULL; | 378 | g->strt.hash = NULL; |
379 | setnilvalue(&g->l_registry); | 379 | setnilvalue(&g->l_registry); |