change in string table: string table is now independent of GC lists; all

strings live in 'normal' GC lists
This commit is contained in:
Roberto Ierusalimschy
2013-08-21 16:21:16 -03:00
parent 8c68863960
commit ae800656c9
7 changed files with 125 additions and 114 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.101 2013/08/07 12:18:11 roberto Exp roberto $
** $Id: lstate.c,v 2.102 2013/08/16 18:55:49 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -280,8 +280,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
g->seed = makeseed(L);
g->gcrunning = 0; /* no GC while building state */
g->GCestimate = 0;
g->strt.size = 0;
g->strt.nuse = 0;
g->strt.size = g->strt.nuse = g->strt.empty = 0;
g->strt.hash = NULL;
setnilvalue(&g->l_registry);
luaZ_initbuffer(L, &g->buff);