Major collections done incrementally

Major collections do not need to "stop the world". Still pending:
criteria for shifts minor-major, shifts generational-incremental.
This commit is contained in:
Roberto Ierusalimschy
2023-12-06 10:49:56 -03:00
parent 74b4013538
commit 789e7acdea
4 changed files with 80 additions and 75 deletions

2
lapi.c
View File

@@ -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: {