diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-05 13:50:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-05 13:50:51 -0300 |
commit | e4287da3a6b0b167da465fd449e5191b9ac9ef46 (patch) | |
tree | 3568d8717dea66ff815475a945cfaafc7e6d98da /lstate.h | |
parent | 1a1b2f3d7f321dd6f28118c985986940b189c635 (diff) | |
download | lua-e4287da3a6b0b167da465fd449e5191b9ac9ef46.tar.gz lua-e4287da3a6b0b167da465fd449e5191b9ac9ef46.tar.bz2 lua-e4287da3a6b0b167da465fd449e5191b9ac9ef46.zip |
generational collector (still not complete)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.134 2017/02/15 18:52:13 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.135 2017/02/23 21:07:34 roberto Exp $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -160,8 +160,12 @@ typedef struct global_State { | |||
160 | GCObject *tobefnz; /* list of userdata to be GC */ | 160 | GCObject *tobefnz; /* list of userdata to be GC */ |
161 | GCObject *fixedgc; /* list of objects not to be collected */ | 161 | GCObject *fixedgc; /* list of objects not to be collected */ |
162 | /* fields for generational collector */ | 162 | /* fields for generational collector */ |
163 | GCObject *old; /* start of old objects */ | ||
164 | GCObject *survival; /* start of objects that survived one GC cycle */ | 163 | GCObject *survival; /* start of objects that survived one GC cycle */ |
164 | GCObject *old; /* start of old objects */ | ||
165 | GCObject *reallyold; /* old objects with more than one cycle */ | ||
166 | GCObject *finobjsur; /* list of survival objects with finalizers */ | ||
167 | GCObject *finobjold; /* list of old objects with finalizers */ | ||
168 | GCObject *finobjrold; /* list of really old objects with finalizers */ | ||
165 | struct lua_State *twups; /* list of threads with open upvalues */ | 169 | struct lua_State *twups; /* list of threads with open upvalues */ |
166 | unsigned int gcfinnum; /* number of finalizers to call in each GC step */ | 170 | unsigned int gcfinnum; /* number of finalizers to call in each GC step */ |
167 | int gcpause; /* size of pause between successive GCs */ | 171 | int gcpause; /* size of pause between successive GCs */ |