aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-01-30 11:44:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-01-30 11:44:42 -0200
commit2c32bff60987d38a60a58d4f0123f3783da60a63 (patch)
treedd97348ac388dd6087c320994bdce6ff18be02e2 /lstate.h
parent264659bd53e92969a1e17d65c0266597cde24b5d (diff)
downloadlua-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lstate.h b/lstate.h
index 05a74dda..11bf18fd 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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 */