MCPcopy Create free account
hub / github.com/F-Stack/f-stack / restartcollection

Function restartcollection

freebsd/contrib/openzfs/module/lua/lgc.c:336–343  ·  view source on GitHub ↗

** mark root set and reset all gray lists, to start a new ** incremental (or full) collection */

Source from the content-addressed store, hash-verified

334** incremental (or full) collection
335*/
336static void restartcollection (global_State *g) {
337 g->gray = g->grayagain = NULL;
338 g->weak = g->allweak = g->ephemeron = NULL;
339 markobject(g, g->mainthread);
340 markvalue(g, &g->l_registry);
341 markmt(g);
342 markbeingfnz(g); /* mark any finalizing object left from previous cycle */
343}
344
345/* }====================================================== */
346

Callers 1

singlestepFunction · 0.85

Calls 2

markbeingfnzFunction · 0.85
markmtFunction · 0.70

Tested by

no test coverage detected