aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index c8fc27c5..30fbc27c 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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;