diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-03 12:37:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-03 12:37:10 -0300 |
commit | aeff4f79fa10caef29617652aa49b77055f4045e (patch) | |
tree | 8f411b76c7c0b496c01224a36852ed38527dba3d /lstate.h | |
parent | 1bf4faec64aca03e1036235e72675f0617124140 (diff) | |
download | lua-aeff4f79fa10caef29617652aa49b77055f4045e.tar.gz lua-aeff4f79fa10caef29617652aa49b77055f4045e.tar.bz2 lua-aeff4f79fa10caef29617652aa49b77055f4045e.zip |
local collection now calls finalizers
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.91 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.92 2013/08/30 19:14:26 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 | */ |
@@ -121,8 +121,9 @@ typedef struct global_State { | |||
121 | lu_byte gcrunning; /* true if GC is running */ | 121 | lu_byte gcrunning; /* true if GC is running */ |
122 | GCObject *allgc; /* list of all collectable objects */ | 122 | GCObject *allgc; /* list of all collectable objects */ |
123 | GCObject *localgc; /* list of local objects */ | 123 | GCObject *localgc; /* list of local objects */ |
124 | GCObject *finobj; /* list of collectable objects with finalizers */ | 124 | GCObject *localfin; /* list of local objects with finalizers */ |
125 | GCObject **sweepgc; /* current position of sweep in list */ | 125 | GCObject **sweepgc; /* current position of sweep in list */ |
126 | GCObject *finobj; /* list of collectable objects with finalizers */ | ||
126 | GCObject *gray; /* list of gray objects */ | 127 | GCObject *gray; /* list of gray objects */ |
127 | GCObject *grayagain; /* list of objects to be traversed atomically */ | 128 | GCObject *grayagain; /* list of objects to be traversed atomically */ |
128 | GCObject *weak; /* list of tables with weak values */ | 129 | GCObject *weak; /* list of tables with weak values */ |