aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-20 16:25:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-20 16:25:20 -0300
commitad0ea7813b39e76b377983138ca995189e22054f (patch)
tree087e3585a4b4bf5ae65f56b9599bbff9c361a123 /lstate.h
parent666e95a66d1a2ceb98bdf320980b3f655264a9c9 (diff)
downloadlua-ad0ea7813b39e76b377983138ca995189e22054f.tar.gz
lua-ad0ea7813b39e76b377983138ca995189e22054f.tar.bz2
lua-ad0ea7813b39e76b377983138ca995189e22054f.zip
GC parameters encoded as floating-point bytes
This encoding brings more precision and a larger range for these parameters.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lstate.h b/lstate.h
index 49acfb7e..5e2020e7 100644
--- a/lstate.h
+++ b/lstate.h
@@ -264,18 +264,18 @@ 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 unsigned short gcpgenminormul; /* control minor generational collections */ 267 lu_byte gcpgenminormul; /* control minor generational collections */
268 unsigned short gcpmajorminor; /* control shift major->minor */ 268 lu_byte gcpmajorminor; /* control shift major->minor */
269 unsigned short gcpminormajor; /* control shift minor->major */ 269 lu_byte gcpminormajor; /* control shift minor->major */
270 unsigned short gcpgcpause; /* size of pause between successive GCs */ 270 lu_byte gcppause; /* size of pause between successive GCs */
271 unsigned short gcpgcstepmul; /* GC "speed" */ 271 lu_byte gcpstepmul; /* GC "speed" */
272 lu_byte gcpstepsize; /* GC granularity */
272 lu_byte currentwhite; 273 lu_byte currentwhite;
273 lu_byte gcstate; /* state of garbage collector */ 274 lu_byte gcstate; /* state of garbage collector */
274 lu_byte gckind; /* kind of GC running */ 275 lu_byte gckind; /* kind of GC running */
275 lu_byte gcstopem; /* stops emergency collections */ 276 lu_byte gcstopem; /* stops emergency collections */
276 lu_byte gcstp; /* control whether GC is running */ 277 lu_byte gcstp; /* control whether GC is running */
277 lu_byte gcemergency; /* true if this is an emergency collection */ 278 lu_byte gcemergency; /* true if this is an emergency collection */
278 lu_byte gcstepsize; /* (log2 of) GC granularity */
279 GCObject *allgc; /* list of all collectable objects */ 279 GCObject *allgc; /* list of all collectable objects */
280 GCObject **sweepgc; /* current position of sweep in list */ 280 GCObject **sweepgc; /* current position of sweep in list */
281 GCObject *finobj; /* list of collectable objects with finalizers */ 281 GCObject *finobj; /* list of collectable objects with finalizers */