diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:48:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:48:07 -0300 |
commit | e2cc179454c6aa6cde5f98954bd3783e0d5d53a3 (patch) | |
tree | 1770fb2eded15ad53211693b19eb2a8698cbf192 /lstate.h | |
parent | ad0ea7813b39e76b377983138ca995189e22054f (diff) | |
download | lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.tar.gz lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.tar.bz2 lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.zip |
New option "setparms" for 'collectgarbage'
The generational mode also uses the parameters for the incremental
mode in its major collections, so it should be easy to change those
parameters without having to change the GC mode.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -264,12 +264,7 @@ typedef struct global_State { | |||
264 | TValue l_registry; | 264 | TValue l_registry; |
265 | TValue nilvalue; /* a nil value */ | 265 | TValue nilvalue; /* a nil value */ |
266 | unsigned int seed; /* randomized seed for hashes */ | 266 | unsigned int seed; /* randomized seed for hashes */ |
267 | lu_byte gcpgenminormul; /* control minor generational collections */ | 267 | lu_byte gcparams[LUA_GCPN]; |
268 | lu_byte gcpmajorminor; /* control shift major->minor */ | ||
269 | lu_byte gcpminormajor; /* control shift minor->major */ | ||
270 | lu_byte gcppause; /* size of pause between successive GCs */ | ||
271 | lu_byte gcpstepmul; /* GC "speed" */ | ||
272 | lu_byte gcpstepsize; /* GC granularity */ | ||
273 | lu_byte currentwhite; | 268 | lu_byte currentwhite; |
274 | lu_byte gcstate; /* state of garbage collector */ | 269 | lu_byte gcstate; /* state of garbage collector */ |
275 | lu_byte gckind; /* kind of GC running */ | 270 | lu_byte gckind; /* kind of GC running */ |