diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:17:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:17:20 -0300 |
commit | f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (patch) | |
tree | baa2abdc9bd4707b42c0609da42aa1130757273b /lgc.h | |
parent | 76953316d1283ab6324b59b914ef53a521408444 (diff) | |
download | lua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.tar.gz lua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.tar.bz2 lua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.zip |
First version of GC counting objects for control
Still needs to review generational mode.
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -135,10 +135,10 @@ | |||
135 | #define getgcparam(p) ((p) * 4) | 135 | #define getgcparam(p) ((p) * 4) |
136 | #define setgcparam(p,v) ((p) = (v) / 4) | 136 | #define setgcparam(p,v) ((p) = (v) / 4) |
137 | 137 | ||
138 | #define LUAI_GCMUL 100 | 138 | #define LUAI_GCMUL 300 |
139 | 139 | ||
140 | /* how much to allocate before next GC step (log2) */ | 140 | /* how many objects to allocate before next GC step (log2) */ |
141 | #define LUAI_GCSTEPSIZE 13 /* 8 KB */ | 141 | #define LUAI_GCSTEPSIZE 8 /* 256 objects */ |
142 | 142 | ||
143 | 143 | ||
144 | /* | 144 | /* |