浏览代码

removed initialization of 'GCestimate' (it is initialized during
a GC cycle, when it start counting)

Roberto Ierusalimschy 8 年之前
父节点
当前提交
f74b87c3c2
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lstate.c

+ 1 - 2
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);