diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-27 12:09:11 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-27 12:09:11 -0300 |
commit | 12b6f610b0f1b4157c04f0db264f1f1d0634709b (patch) | |
tree | 198881cf4ac938aa9082fe7781d575e359d9bf09 /lgc.h | |
parent | e81f586001d767c8de9b760ae2e2c3b5da1542c6 (diff) | |
download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |