From 3d54b42d59bcc1b31a369f3497ac22745d63cae6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Sep 2024 14:01:42 -0300 Subject: 'objsize' broke in smaller pieces --- lgc.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'lgc.h') diff --git a/lgc.h b/lgc.h index 0b16ac7f..a3bc746a 100644 --- a/lgc.h +++ b/lgc.h @@ -160,7 +160,11 @@ */ -/* Default Values for GC parameters */ +/* +** {====================================================== +** Default Values for GC parameters +** ======================================================= +*/ /* ** Minor collections will shift to major ones after LUAI_MINORMAJOR% @@ -189,17 +193,20 @@ /* ** Step multiplier: The collector handles LUAI_GCMUL% work units for ** each new allocated byte. (Each "work unit" corresponds roughly to -** sweeping or marking one object.) +** sweeping one object or traversing one slot.) */ -#define LUAI_GCMUL 20 /* ??? */ +#define LUAI_GCMUL 40 /* How many bytes to allocate before next GC step */ -#define LUAI_GCSTEPSIZE (250 * sizeof(void*)) +#define LUAI_GCSTEPSIZE (200 * sizeof(Table)) #define setgcparam(g,p,v) (g->gcparams[LUA_GCP##p] = luaO_codeparam(v)) #define applygcparam(g,p,x) luaO_applyparam(g->gcparams[LUA_GCP##p], x) +/* }====================================================== */ + + /* ** Control when GC is running: */ -- cgit v1.2.3-55-g6feb