From ad0ea7813b39e76b377983138ca995189e22054f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 20 Dec 2023 16:25:20 -0300 Subject: GC parameters encoded as floating-point bytes This encoding brings more precision and a larger range for these parameters. --- lstate.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lstate.h') 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 { TValue l_registry; TValue nilvalue; /* a nil value */ unsigned int seed; /* randomized seed for hashes */ - unsigned short gcpgenminormul; /* control minor generational collections */ - unsigned short gcpmajorminor; /* control shift major->minor */ - unsigned short gcpminormajor; /* control shift minor->major */ - unsigned short gcpgcpause; /* size of pause between successive GCs */ - unsigned short gcpgcstepmul; /* GC "speed" */ + lu_byte gcpgenminormul; /* control minor generational collections */ + lu_byte gcpmajorminor; /* control shift major->minor */ + lu_byte gcpminormajor; /* control shift minor->major */ + lu_byte gcppause; /* size of pause between successive GCs */ + lu_byte gcpstepmul; /* GC "speed" */ + lu_byte gcpstepsize; /* GC granularity */ lu_byte currentwhite; lu_byte gcstate; /* state of garbage collector */ lu_byte gckind; /* kind of GC running */ lu_byte gcstopem; /* stops emergency collections */ lu_byte gcstp; /* control whether GC is running */ lu_byte gcemergency; /* true if this is an emergency collection */ - lu_byte gcstepsize; /* (log2 of) GC granularity */ GCObject *allgc; /* list of all collectable objects */ GCObject **sweepgc; /* current position of sweep in list */ GCObject *finobj; /* list of collectable objects with finalizers */ -- cgit v1.2.3-55-g6feb