diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-23 17:15:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-23 17:15:06 -0300 |
commit | 5ffcd458f001fce02e5f20a6130e145c6a3caf53 (patch) | |
tree | 4e4ae6f2c0be73beb037c6f6e1c4931dc76418c5 /lgc.h | |
parent | 9b01da97e3a8f2df9acbd3b86af50e4040e9d914 (diff) | |
download | lua-5ffcd458f001fce02e5f20a6130e145c6a3caf53.tar.gz lua-5ffcd458f001fce02e5f20a6130e145c6a3caf53.tar.bz2 lua-5ffcd458f001fce02e5f20a6130e145c6a3caf53.zip |
Some changes in default GC parameters
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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)) |