diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-30 14:01:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-30 14:01:42 -0300 |
commit | 3d54b42d59bcc1b31a369f3497ac22745d63cae6 (patch) | |
tree | 283f8d935865e1cb6d01e25f3d745f91229d22c8 /lgc.h | |
parent | e4f418f07c7349f5ff844fbdc9a3b37b488113a5 (diff) | |
download | lua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.tar.gz lua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.tar.bz2 lua-3d54b42d59bcc1b31a369f3497ac22745d63cae6.zip |
'objsize' broke in smaller pieces
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 | */ |