diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-23 10:34:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-23 10:34:54 -0300 |
commit | 50955e27f592441a223c6267956e470f98eeb3c0 (patch) | |
tree | 4543b70e04d293c4eb09955d064f3446eb3e64a9 /lstate.c | |
parent | 33c49f7fa03cf7e3bf7bb3aa697dc567d910c661 (diff) | |
download | lua-50955e27f592441a223c6267956e470f98eeb3c0.tar.gz lua-50955e27f592441a223c6267956e470f98eeb3c0.tar.bz2 lua-50955e27f592441a223c6267956e470f98eeb3c0.zip |
C functions and strings now go to the local list; first version
of the local collector
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.103 2013/08/21 19:21:16 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.104 2013/08/21 20:09:51 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,6 +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->GCthreshold = 10000; | ||
283 | g->strt.size = g->strt.nuse = g->strt.empty = 0; | 284 | g->strt.size = g->strt.nuse = g->strt.empty = 0; |
284 | g->strt.hash = NULL; | 285 | g->strt.hash = NULL; |
285 | setnilvalue(&g->l_registry); | 286 | setnilvalue(&g->l_registry); |
@@ -288,6 +289,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
288 | g->version = lua_version(NULL); | 289 | g->version = lua_version(NULL); |
289 | g->gcstate = GCSpause; | 290 | g->gcstate = GCSpause; |
290 | g->allgc = NULL; | 291 | g->allgc = NULL; |
292 | g->localgc = NULL; | ||
291 | g->finobj = NULL; | 293 | g->finobj = NULL; |
292 | g->tobefnz = NULL; | 294 | g->tobefnz = NULL; |
293 | g->fixedgc = NULL; | 295 | g->fixedgc = NULL; |