From b36b4b521f53e5ff2e18fff3c194d28f9a840868 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 May 2012 14:32:25 -0300 Subject: try to avoid sweeping new objects created with new white (and therefore not collectable in the current cycle) --- lstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 0a61ea1a..fecd0fba 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.93 2012/02/01 21:57:15 roberto Exp roberto $ +** $Id: lstate.c,v 2.94 2012/05/11 14:06:07 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -292,6 +292,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->allgc = NULL; g->finobj = NULL; g->tobefnz = NULL; + g->sweepgc = g->sweepfin = NULL; g->gray = g->grayagain = NULL; g->weak = g->ephemeron = g->allweak = NULL; g->totalbytes = sizeof(LG); -- cgit v1.2.3-55-g6feb