some changes toward ephemerons

This commit is contained in:
Roberto Ierusalimschy
2007-10-29 14:51:20 -02:00
parent c06cc60946
commit 0e961ad47a
4 changed files with 101 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.39 2006/09/11 14:07:24 roberto Exp roberto $
** $Id: lstate.c,v 2.40 2006/10/10 17:40:17 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -182,7 +182,9 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
g->sweepgc = &g->rootgc;
g->gray = NULL;
g->grayagain = NULL;
g->weak = NULL;
g->weakvalue = NULL;
g->weakkey = NULL;
g->weakkeyvalue = NULL;
g->tmudata = NULL;
g->totalbytes = sizeof(LG);
g->gcpause = LUAI_GCPAUSE;