diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-12 15:56:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-12 15:56:25 -0300 |
commit | f74b87c3c29fb052adc681317a54dfbe4a5a281b (patch) | |
tree | 97b5694f913576f758cf565f0ff4c97dcd4f8841 /lstate.c | |
parent | 16001acb15456c832474edc9f0323e0238e28a11 (diff) | |
download | lua-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |