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.
This commit is contained in:
3
lgc.h
3
lgc.h
@@ -193,7 +193,8 @@
|
||||
#define LUAI_GCSTEPSIZE 250
|
||||
|
||||
|
||||
#define setgcparam(g,p,v) if ((v) >= 0) {g->p = luaO_codeparam(v);}
|
||||
#define setgcparam(g,p,v) (g->gcparams[LUA_GCP##p] = luaO_codeparam(v))
|
||||
#define applygcparam(g,p,x) luaO_applyparam(g->gcparams[LUA_GCP##p], x)
|
||||
|
||||
/*
|
||||
** Control when GC is running:
|
||||
|
||||
Reference in New Issue
Block a user