aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-27 12:09:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-27 12:09:11 -0300
commit12b6f610b0f1b4157c04f0db264f1f1d0634709b (patch)
tree198881cf4ac938aa9082fe7781d575e359d9bf09 /lgc.h
parente81f586001d767c8de9b760ae2e2c3b5da1542c6 (diff)
downloadlua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.tar.gz
lua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.tar.bz2
lua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.zip
Several tweaks in the garbage collector
- back with step size in collectgarbage("step") - adjustments in defaults for some GC parameters - adjustments in 'luaO_codeparam'
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index 9aff11f5..b4c4f234 100644
--- a/lgc.h
+++ b/lgc.h
@@ -171,13 +171,13 @@
171** Major collections will shift to minor ones after a collection 171** Major collections will shift to minor ones after a collection
172** collects at least LUAI_MAJORMINOR% of the new objects. 172** collects at least LUAI_MAJORMINOR% of the new objects.
173*/ 173*/
174#define LUAI_MAJORMINOR 80 174#define LUAI_MAJORMINOR 50
175 175
176/* 176/*
177** A young (minor) collection will run after creating LUAI_GENMINORMUL% 177** A young (minor) collection will run after creating LUAI_GENMINORMUL%
178** new objects. 178** new objects.
179*/ 179*/
180#define LUAI_GENMINORMUL 20 180#define LUAI_GENMINORMUL 25
181 181
182 182
183/* incremental */ 183/* incremental */