aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-30 14:01:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-30 14:01:42 -0300
commit3d54b42d59bcc1b31a369f3497ac22745d63cae6 (patch)
tree283f8d935865e1cb6d01e25f3d745f91229d22c8 /lgc.h
parente4f418f07c7349f5ff844fbdc9a3b37b488113a5 (diff)
downloadlua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.tar.gz
lua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.tar.bz2
lua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.zip
'objsize' broke in smaller pieces
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/lgc.h b/lgc.h
index 0b16ac7f..a3bc746a 100644
--- a/lgc.h
+++ b/lgc.h
@@ -160,7 +160,11 @@
160*/ 160*/
161 161
162 162
163/* Default Values for GC parameters */ 163/*
164** {======================================================
165** Default Values for GC parameters
166** =======================================================
167*/
164 168
165/* 169/*
166** Minor collections will shift to major ones after LUAI_MINORMAJOR% 170** Minor collections will shift to major ones after LUAI_MINORMAJOR%
@@ -189,17 +193,20 @@
189/* 193/*
190** Step multiplier: The collector handles LUAI_GCMUL% work units for 194** Step multiplier: The collector handles LUAI_GCMUL% work units for
191** each new allocated byte. (Each "work unit" corresponds roughly to 195** each new allocated byte. (Each "work unit" corresponds roughly to
192** sweeping or marking one object.) 196** sweeping one object or traversing one slot.)
193*/ 197*/
194#define LUAI_GCMUL 20 /* ??? */ 198#define LUAI_GCMUL 40
195 199
196/* How many bytes to allocate before next GC step */ 200/* How many bytes to allocate before next GC step */
197#define LUAI_GCSTEPSIZE (250 * sizeof(void*)) 201#define LUAI_GCSTEPSIZE (200 * sizeof(Table))
198 202
199 203
200#define setgcparam(g,p,v) (g->gcparams[LUA_GCP##p] = luaO_codeparam(v)) 204#define setgcparam(g,p,v) (g->gcparams[LUA_GCP##p] = luaO_codeparam(v))
201#define applygcparam(g,p,x) luaO_applyparam(g->gcparams[LUA_GCP##p], x) 205#define applygcparam(g,p,x) luaO_applyparam(g->gcparams[LUA_GCP##p], x)
202 206
207/* }====================================================== */
208
209
203/* 210/*
204** Control when GC is running: 211** Control when GC is running:
205*/ 212*/