aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-12 15:56:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-12 15:56:25 -0300
commitf74b87c3c29fb052adc681317a54dfbe4a5a281b (patch)
tree97b5694f913576f758cf565f0ff4c97dcd4f8841 /lstate.c
parent16001acb15456c832474edc9f0323e0238e28a11 (diff)
downloadlua-f74b87c3c29fb052adc681317a54dfbe4a5a281b.tar.gz
lua-f74b87c3c29fb052adc681317a54dfbe4a5a281b.tar.bz2
lua-f74b87c3c29fb052adc681317a54dfbe4a5a281b.zip
removed initialization of 'GCestimate' (it is initialized during
a GC cycle, when it start counting)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 0b731c87..adc1bce9 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.135 2017/04/05 16:50:51 roberto Exp $ 2** $Id: lstate.c,v 2.136 2017/04/11 19:00:27 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*/
@@ -311,7 +311,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
311 g->mainthread = L; 311 g->mainthread = L;
312 g->seed = makeseed(L); 312 g->seed = makeseed(L);
313 g->gcrunning = 0; /* no GC while building state */ 313 g->gcrunning = 0; /* no GC while building state */
314 g->GCestimate = 0;
315 g->strt.size = g->strt.nuse = 0; 314 g->strt.size = g->strt.nuse = 0;
316 g->strt.hash = NULL; 315 g->strt.hash = NULL;
317 setnilvalue(&g->l_registry); 316 setnilvalue(&g->l_registry);