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

Function restartcollection

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

** mark root set and reset all gray lists, to start a new collection. ** 'GCmarked' is initialized to count the total number of live bytes ** during a cycle. */

Source from the content-addressed store, hash-verified

438** during a cycle.
439*/
440static void restartcollection (global_State *g) {
441 cleargraylists(g);
442 g->GCmarked = 0;
443 markobject(g, mainthread(g));
444 markvalue(g, &g->l_registry);
445 markmt(g);
446 markbeingfnz(g); /* mark any finalizing object left from previous cycle */
447}
448
449/* }====================================================== */
450

Callers 1

singlestepFunction · 0.70

Calls 3

cleargraylistsFunction · 0.70
markmtFunction · 0.70
markbeingfnzFunction · 0.70

Tested by

no test coverage detected