aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-21 16:21:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-21 16:21:16 -0300
commitae800656c9f82b54f6fae1497022d3484ad0c920 (patch)
treee3124387f4e29fc452ebb3c15b7e6cd0c1f4bbb7 /lstate.c
parent8c688639605f3ec0b5a57d906cacc27981b066da (diff)
downloadlua-ae800656c9f82b54f6fae1497022d3484ad0c920.tar.gz
lua-ae800656c9f82b54f6fae1497022d3484ad0c920.tar.bz2
lua-ae800656c9f82b54f6fae1497022d3484ad0c920.zip
change in string table: string table is now independent of GC lists; all
strings live in 'normal' GC lists
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index a9c321d5..7753568d 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.101 2013/08/07 12:18:11 roberto Exp roberto $ 2** $Id: lstate.c,v 2.102 2013/08/16 18:55:49 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -280,8 +280,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
280 g->seed = makeseed(L); 280 g->seed = makeseed(L);
281 g->gcrunning = 0; /* no GC while building state */ 281 g->gcrunning = 0; /* no GC while building state */
282 g->GCestimate = 0; 282 g->GCestimate = 0;
283 g->strt.size = 0; 283 g->strt.size = g->strt.nuse = g->strt.empty = 0;
284 g->strt.nuse = 0;
285 g->strt.hash = NULL; 284 g->strt.hash = NULL;
286 setnilvalue(&g->l_registry); 285 setnilvalue(&g->l_registry);
287 luaZ_initbuffer(L, &g->buff); 286 luaZ_initbuffer(L, &g->buff);