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

Function sweeptolive

3rd/lua-5.4.3/src/lgc.c:843–849  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

841** sweep a list until a live object (or end of list)
842*/
843static GCObject **sweeptolive (lua_State *L, GCObject **p) {
844 GCObject **old = p;
845 do {
846 p = sweeplist(L, p, 1, NULL);
847 } while (p == old);
848 return p;
849}
850
851/* }====================================================== */
852

Callers 2

luaC_checkfinalizerFunction · 0.85
entersweepFunction · 0.85

Calls 1

sweeplistFunction · 0.85

Tested by

no test coverage detected