MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / sweeptolive

Function sweeptolive

third-party/lua-5.2.4/src/lgc.c:758–767  ·  view source on GitHub ↗

** sweep a list until a live object (or end of list) */

Source from the content-addressed store, hash-verified

756** sweep a list until a live object (or end of list)
757*/
758static GCObject **sweeptolive (lua_State *L, GCObject **p, int *n) {
759 GCObject ** old = p;
760 int i = 0;
761 do {
762 i++;
763 p = sweeplist(L, p, 1);
764 } while (p == old);
765 if (n) *n += i;
766 return p;
767}
768
769/* }====================================================== */
770

Callers 2

luaC_checkfinalizerFunction · 0.70
entersweepFunction · 0.70

Calls 1

sweeplistFunction · 0.70

Tested by

no test coverage detected