MCPcopy Create free account
hub / github.com/DFHack/dfhack / restartcollection

Function restartcollection

depends/lua/src/lgc.c:337–344  ·  view source on GitHub ↗

** mark root set and reset all gray lists, to start a new collection */

Source from the content-addressed store, hash-verified

335** mark root set and reset all gray lists, to start a new collection
336*/
337static void restartcollection (global_State *g) {
338 g->gray = g->grayagain = NULL;
339 g->weak = g->allweak = g->ephemeron = NULL;
340 markobject(g, g->mainthread);
341 markvalue(g, &g->l_registry);
342 markmt(g);
343 markbeingfnz(g); /* mark any finalizing object left from previous cycle */
344}
345
346/* }====================================================== */
347

Callers 1

singlestepFunction · 0.85

Calls 2

markmtFunction · 0.85
markbeingfnzFunction · 0.85

Tested by

no test coverage detected