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

Function entergen

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

** Enter generational mode. Must go until the end of an atomic cycle ** to ensure that all objects are correctly marked and weak tables ** are cleared. Then, turn all objects into old and finishes the ** collection. */

Source from the content-addressed store, hash-verified

1426** collection.
1427*/
1428static void entergen (lua_State *L, global_State *g) {
1429 luaC_runtilstate(L, GCSpause, 1); /* prepare to start a new cycle */
1430 luaC_runtilstate(L, GCSpropagate, 1); /* start new cycle */
1431 atomic(L); /* propagates all and then do the atomic stuff */
1432 atomic2gen(L, g);
1433 setminordebt(g); /* set debt assuming next cycle will be minor */
1434}
1435
1436
1437/*

Callers 2

luaC_changemodeFunction · 0.70
fullgenFunction · 0.70

Calls 4

luaC_runtilstateFunction · 0.70
atomicFunction · 0.70
atomic2genFunction · 0.70
setminordebtFunction · 0.70

Tested by

no test coverage detected