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

Function sweepstep

third-party/lua-5.5.0/src/lgc.c:1588–1596  ·  view source on GitHub ↗

** Do a sweep step. The normal case (not fast) sweeps at most GCSWEEPMAX ** elements. The fast case sweeps the whole list. */

Source from the content-addressed store, hash-verified

1586** elements. The fast case sweeps the whole list.
1587*/
1588static void sweepstep (lua_State *L, global_State *g,
1589 lu_byte nextstate, GCObject **nextlist, int fast) {
1590 if (g->sweepgc)
1591 g->sweepgc = sweeplist(L, g->sweepgc, fast ? MAX_LMEM : GCSWEEPMAX);
1592 else { /* enter next state */
1593 g->gcstate = nextstate;
1594 g->sweepgc = nextlist;
1595 }
1596}
1597
1598
1599/*

Callers 1

singlestepFunction · 0.70

Calls 1

sweeplistFunction · 0.70

Tested by

no test coverage detected