diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-22 14:32:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-22 14:32:25 -0300 |
commit | b36b4b521f53e5ff2e18fff3c194d28f9a840868 (patch) | |
tree | f8a96d20fcb95efcd07fcb7218d088406c3020dc /lstate.h | |
parent | 398811a3131cb025ca61d1a0839e3f99ba632ae9 (diff) | |
download | lua-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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |