From f74b87c3c29fb052adc681317a54dfbe4a5a281b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 12 Apr 2017 15:56:25 -0300 Subject: [PATCH] removed initialization of 'GCestimate' (it is initialized during a GC cycle, when it start counting) --- lstate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lstate.c b/lstate.c index 0b731c87..adc1bce9 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.135 2017/04/05 16:50:51 roberto Exp $ +** $Id: lstate.c,v 2.136 2017/04/11 19:00:27 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -311,7 +311,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->mainthread = L; g->seed = makeseed(L); g->gcrunning = 0; /* no GC while building state */ - g->GCestimate = 0; g->strt.size = g->strt.nuse = 0; g->strt.hash = NULL; setnilvalue(&g->l_registry);