aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-05-22 14:32:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-05-22 14:32:25 -0300
commitb36b4b521f53e5ff2e18fff3c194d28f9a840868 (patch)
treef8a96d20fcb95efcd07fcb7218d088406c3020dc /lstate.c
parent398811a3131cb025ca61d1a0839e3f99ba632ae9 (diff)
downloadlua-b36b4b521f53e5ff2e18fff3c194d28f9a840868.tar.gz
lua-b36b4b521f53e5ff2e18fff3c194d28f9a840868.tar.bz2
lua-b36b4b521f53e5ff2e18fff3c194d28f9a840868.zip
try to avoid sweeping new objects created with new white (and
therefore not collectable in the current cycle)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 0a61ea1a..fecd0fba 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.93 2012/02/01 21:57:15 roberto Exp roberto $ 2** $Id: lstate.c,v 2.94 2012/05/11 14:06:07 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*/
@@ -292,6 +292,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
292 g->allgc = NULL; 292 g->allgc = NULL;
293 g->finobj = NULL; 293 g->finobj = NULL;
294 g->tobefnz = NULL; 294 g->tobefnz = NULL;
295 g->sweepgc = g->sweepfin = NULL;
295 g->gray = g->grayagain = NULL; 296 g->gray = g->grayagain = NULL;
296 g->weak = g->ephemeron = g->allweak = NULL; 297 g->weak = g->ephemeron = g->allweak = NULL;
297 g->totalbytes = sizeof(LG); 298 g->totalbytes = sizeof(LG);