aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lgc.h b/lgc.h
index a3bc746a..339cc176 100644
--- a/lgc.h
+++ b/lgc.h
@@ -170,7 +170,7 @@
170** Minor collections will shift to major ones after LUAI_MINORMAJOR% 170** Minor collections will shift to major ones after LUAI_MINORMAJOR%
171** bytes become old. 171** bytes become old.
172*/ 172*/
173#define LUAI_MINORMAJOR 100 173#define LUAI_MINORMAJOR 70
174 174
175/* 175/*
176** Major collections will shift to minor ones after a collection 176** Major collections will shift to minor ones after a collection
@@ -182,20 +182,20 @@
182** A young (minor) collection will run after creating LUAI_GENMINORMUL% 182** A young (minor) collection will run after creating LUAI_GENMINORMUL%
183** new bytes. 183** new bytes.
184*/ 184*/
185#define LUAI_GENMINORMUL 25 185#define LUAI_GENMINORMUL 20
186 186
187 187
188/* incremental */ 188/* incremental */
189 189
190/* Number of bytes must be LUAI_GCPAUSE% before starting new cycle */ 190/* Number of bytes must be LUAI_GCPAUSE% before starting new cycle */
191#define LUAI_GCPAUSE 200 191#define LUAI_GCPAUSE 250
192 192
193/* 193/*
194** Step multiplier: The collector handles LUAI_GCMUL% work units for 194** Step multiplier: The collector handles LUAI_GCMUL% work units for
195** each new allocated byte. (Each "work unit" corresponds roughly to 195** each new allocated word. (Each "work unit" corresponds roughly to
196** sweeping one object or traversing one slot.) 196** sweeping one object or traversing one slot.)
197*/ 197*/
198#define LUAI_GCMUL 40 198#define LUAI_GCMUL 200
199 199
200/* How many bytes to allocate before next GC step */ 200/* How many bytes to allocate before next GC step */
201#define LUAI_GCSTEPSIZE (200 * sizeof(Table)) 201#define LUAI_GCSTEPSIZE (200 * sizeof(Table))