From e2cc179454c6aa6cde5f98954bd3783e0d5d53a3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 22 Dec 2023 14:48:07 -0300 Subject: 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. --- lstate.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 5e2020e7..7f567453 100644 --- a/lstate.h +++ b/lstate.h @@ -264,12 +264,7 @@ typedef struct global_State { TValue l_registry; TValue nilvalue; /* a nil value */ unsigned int seed; /* randomized seed for hashes */ - 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 gcparams[LUA_GCPN]; lu_byte currentwhite; lu_byte gcstate; /* state of garbage collector */ lu_byte gckind; /* kind of GC running */ -- cgit v1.2.3-55-g6feb