MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / restartcollection

Function restartcollection

3rd/lua-5.4.3/src/lgc.c:397–403  ·  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

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

Callers 1

singlestepFunction · 0.85

Calls 3

cleargraylistsFunction · 0.85
markmtFunction · 0.85
markbeingfnzFunction · 0.85

Tested by

no test coverage detected