aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
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*/