MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / checkgrays

Function checkgrays

Dependencies/lua/src/ltests.c:564–573  ·  view source on GitHub ↗

** Check objects in gray lists. */

Source from the content-addressed store, hash-verified

562** Check objects in gray lists.
563*/
564static lu_mem checkgrays (global_State *g) {
565 int total = 0; /* count number of elements in all lists */
566 if (!keepinvariant(g)) return total;
567 total += checkgraylist(g, g->gray);
568 total += checkgraylist(g, g->grayagain);
569 total += checkgraylist(g, g->weak);
570 total += checkgraylist(g, g->allweak);
571 total += checkgraylist(g, g->ephemeron);
572 return total;
573}
574
575
576/*

Callers 1

lua_checkmemoryFunction · 0.85

Calls 1

checkgraylistFunction · 0.85

Tested by

no test coverage detected