MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / restartcollection

Function restartcollection

extlibs/lua/src/lgc.c:359–366  ·  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

357** mark root set and reset all gray lists, to start a new collection
358*/
359static void restartcollection (global_State *g) {
360 g->gray = g->grayagain = NULL;
361 g->weak = g->allweak = g->ephemeron = NULL;
362 markobject(g, g->mainthread);
363 markvalue(g, &g->l_registry);
364 markmt(g);
365 markbeingfnz(g); /* mark any finalizing object left from previous cycle */
366}
367
368/* }====================================================== */
369

Callers 1

singlestepFunction · 0.85

Calls 2

markmtFunction · 0.85
markbeingfnzFunction · 0.85

Tested by

no test coverage detected