diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:48:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:48:07 -0300 |
commit | e2cc179454c6aa6cde5f98954bd3783e0d5d53a3 (patch) | |
tree | 1770fb2eded15ad53211693b19eb2a8698cbf192 /lgc.h | |
parent | ad0ea7813b39e76b377983138ca995189e22054f (diff) | |
download | lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.tar.gz lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.tar.bz2 lua-e2cc179454c6aa6cde5f98954bd3783e0d5d53a3.zip |
New option "setparms" for 'collectgarbage'
The generational mode also uses the parameters for the incremental
mode in its major collections, so it should be easy to change those
parameters without having to change the GC mode.
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -193,7 +193,8 @@ | |||
193 | #define LUAI_GCSTEPSIZE 250 | 193 | #define LUAI_GCSTEPSIZE 250 |
194 | 194 | ||
195 | 195 | ||
196 | #define setgcparam(g,p,v) if ((v) >= 0) {g->p = luaO_codeparam(v);} | 196 | #define setgcparam(g,p,v) (g->gcparams[LUA_GCP##p] = luaO_codeparam(v)) |
197 | #define applygcparam(g,p,x) luaO_applyparam(g->gcparams[LUA_GCP##p], x) | ||
197 | 198 | ||
198 | /* | 199 | /* |
199 | ** Control when GC is running: | 200 | ** Control when GC is running: |