MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / restartcollection

Function restartcollection

lib/lua/src/lgc.c:403–409  ·  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

401** mark root set and reset all gray lists, to start a new collection
402*/
403static void restartcollection (global_State *g) {
404 cleargraylists(g);
405 markobject(g, g->mainthread);
406 markvalue(g, &g->l_registry);
407 markmt(g);
408 markbeingfnz(g); /* mark any finalizing object left from previous cycle */
409}
410
411/* }====================================================== */
412

Callers 1

singlestepFunction · 0.85

Calls 3

cleargraylistsFunction · 0.85
markmtFunction · 0.85
markbeingfnzFunction · 0.85

Tested by

no test coverage detected