From 3aa95981779aa8144da11f328a25bf79bd141c41 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Mar 2010 10:06:36 -0300 Subject: 'mainthread' is not inserted in the 'allgc' list anymore, but swept separately. --- lstate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 200ddd69..02554c4d 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.71 2010/03/22 17:45:55 roberto Exp roberto $ +** $Id: lstate.c,v 2.72 2010/03/24 13:07:01 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -247,7 +247,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { L->marked = luaC_white(g); g->gckind = KGC_NORMAL; g->nCcalls = 0; - set2bits(L->marked, FIXEDBIT, SFIXEDBIT); preinit_state(L, g); g->frealloc = f; g->ud = ud; @@ -264,7 +263,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->panic = NULL; g->version = lua_version(NULL); g->gcstate = GCSpause; - g->allgc = obj2gco(L); + g->allgc = NULL; g->udgc = NULL; g->tobefnz = NULL; g->totalbytes = sizeof(LG); -- cgit v1.2.3-55-g6feb