diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-01-30 11:44:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-01-30 11:44:42 -0200 |
commit | 2c32bff60987d38a60a58d4f0123f3783da60a63 (patch) | |
tree | dd97348ac388dd6087c320994bdce6ff18be02e2 /lstate.h | |
parent | 264659bd53e92969a1e17d65c0266597cde24b5d (diff) | |
download | lua-2c32bff60987d38a60a58d4f0123f3783da60a63.tar.gz lua-2c32bff60987d38a60a58d4f0123f3783da60a63.tar.bz2 lua-2c32bff60987d38a60a58d4f0123f3783da60a63.zip |
After a "bad collections", avoid switching back back to generational
After a major bad collection (one that collects too few objects),
next collection will be major again. In that case, avoid switching
back to generational mode (as it will have to switch again to
incremental to do next major collection).
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -193,6 +193,7 @@ typedef struct global_State { | |||
193 | l_mem totalbytes; /* number of bytes currently allocated - GCdebt */ | 193 | l_mem totalbytes; /* number of bytes currently allocated - GCdebt */ |
194 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ | 194 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ |
195 | lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ | 195 | lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ |
196 | lu_mem lastatomic; /* see function 'genstep' in file 'lgc.c' */ | ||
196 | stringtable strt; /* hash table for strings */ | 197 | stringtable strt; /* hash table for strings */ |
197 | TValue l_registry; | 198 | TValue l_registry; |
198 | TValue nilvalue; /* a nil value */ | 199 | TValue nilvalue; /* a nil value */ |