aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-22 14:48:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-22 14:48:07 -0300
commite2cc179454c6aa6cde5f98954bd3783e0d5d53a3 (patch)
tree1770fb2eded15ad53211693b19eb2a8698cbf192 /lgc.h
parentad0ea7813b39e76b377983138ca995189e22054f (diff)
downloadlua-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lgc.h b/lgc.h
index 6a03f787..9aff11f5 100644
--- a/lgc.h
+++ b/lgc.h
@@ -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: