diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-19 14:02:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-19 14:02:50 -0300 |
commit | c7bdc0e0e8ab03820b472a87b87c04475def5997 (patch) | |
tree | 991bf63ed4a9f108411529db4db468334d686dc2 /lstate.h | |
parent | a45945b6d511b00b1c84dc73881474030737e956 (diff) | |
download | lua-c7bdc0e0e8ab03820b472a87b87c04475def5997.tar.gz lua-c7bdc0e0e8ab03820b472a87b87c04475def5997.tar.bz2 lua-c7bdc0e0e8ab03820b472a87b87c04475def5997.zip |
first version of control for the generational collector
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.136 2017/04/05 16:50:51 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.137 2017/04/11 18:41:09 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 | */ |
@@ -148,6 +148,8 @@ typedef struct global_State { | |||
148 | lu_byte currentwhite; | 148 | lu_byte currentwhite; |
149 | lu_byte gcstate; /* state of garbage collector */ | 149 | lu_byte gcstate; /* state of garbage collector */ |
150 | lu_byte gckind; /* kind of GC running */ | 150 | lu_byte gckind; /* kind of GC running */ |
151 | lu_byte genminormul; /* control for minor generational collections */ | ||
152 | lu_byte genmajormul; /* control for major generational collections */ | ||
151 | lu_byte gcrunning; /* true if GC is running */ | 153 | lu_byte gcrunning; /* true if GC is running */ |
152 | GCObject *allgc; /* list of all collectable objects */ | 154 | GCObject *allgc; /* list of all collectable objects */ |
153 | GCObject **sweepgc; /* current position of sweep in list */ | 155 | GCObject **sweepgc; /* current position of sweep in list */ |