MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / minor2inc

Function minor2inc

third-party/lua-5.5.0/src/lgc.c:1306–1314  ·  view source on GitHub ↗

** Shifts from a minor collection to major collections. It starts in ** the "sweep all" state to clear all objects, which are mostly black ** in generational mode. */

Source from the content-addressed store, hash-verified

1304** in generational mode.
1305*/
1306static void minor2inc (lua_State *L, global_State *g, lu_byte kind) {
1307 g->GCmajorminor = g->GCmarked; /* number of live bytes */
1308 g->gckind = kind;
1309 g->reallyold = g->old1 = g->survival = NULL;
1310 g->finobjrold = g->finobjold1 = g->finobjsur = NULL;
1311 entersweep(L); /* continue as an incremental cycle */
1312 /* set a debt equal to the step size */
1313 luaE_setdebt(g, applygcparam(g, STEPSIZE, 100));
1314}
1315
1316
1317/*

Callers 3

youngcollectionFunction · 0.85
luaC_changemodeFunction · 0.85
fullgenFunction · 0.85

Calls 2

entersweepFunction · 0.70
luaE_setdebtFunction · 0.70

Tested by

no test coverage detected