From 789e7acdea3ada96bd00b7aac6d82e805bfee85c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 6 Dec 2023 10:49:56 -0300 Subject: Major collections done incrementally Major collections do not need to "stop the world". Still pending: criteria for shifts minor-major, shifts generational-incremental. --- lapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index f807bd4b..71b679aa 100644 --- a/lapi.c +++ b/lapi.c @@ -1211,7 +1211,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { setgcparam(g, genminormul, minormul); if (majormul != 0) setgcparam(g, genmajormul, majormul); - luaC_changemode(L, KGC_GEN); + luaC_changemode(L, KGC_GENMINOR); break; } case LUA_GCINC: { -- cgit v1.2.3-55-g6feb