aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
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.h
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.h')
-rw-r--r--lstate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index 85359fe3..302834ab 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.77 2012/02/01 21:57:15 roberto Exp roberto $ 2** $Id: lstate.h,v 2.78 2012/05/20 20:36:44 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*/
@@ -126,7 +126,8 @@ typedef struct global_State {
126 int sweepstrgc; /* position of sweep in `strt' */ 126 int sweepstrgc; /* position of sweep in `strt' */
127 GCObject *allgc; /* list of all collectable objects */ 127 GCObject *allgc; /* list of all collectable objects */
128 GCObject *finobj; /* list of collectable objects with finalizers */ 128 GCObject *finobj; /* list of collectable objects with finalizers */
129 GCObject **sweepgc; /* current position of sweep */ 129 GCObject **sweepgc; /* current position of sweep in list 'allgc' */
130 GCObject **sweepfin; /* current position of sweep in list 'finobj' */
130 GCObject *gray; /* list of gray objects */ 131 GCObject *gray; /* list of gray objects */
131 GCObject *grayagain; /* list of objects to be traversed atomically */ 132 GCObject *grayagain; /* list of objects to be traversed atomically */
132 GCObject *weak; /* list of tables with weak values */ 133 GCObject *weak; /* list of tables with weak values */