new GC state to sweep 'localgc' list + small changes in sweep control

This commit is contained in:
Roberto Ierusalimschy
2013-08-30 16:14:26 -03:00
parent 8ef9e8460e
commit 1bf4faec64
5 changed files with 48 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.107 2013/08/27 18:53:35 roberto Exp roberto $
** $Id: lstate.c,v 2.108 2013/08/28 18:30:26 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -301,7 +301,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
g->finobj = NULL;
g->tobefnz = NULL;
g->fixedgc = NULL;
g->sweepgc = g->sweepfin = NULL;
g->sweepgc = NULL;
g->gray = g->grayagain = NULL;
g->weak = g->ephemeron = g->allweak = NULL;
g->totalbytes = sizeof(LG);