MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / entersweep

Function entersweep

extlibs/lua/src/lgc.c:1378–1383  ·  view source on GitHub ↗

** Enter first sweep phase. ** The call to 'sweeptolive' makes the pointer point to an object ** inside the list (instead of to the header), so that the real sweep do ** not need to skip objects created between "now" and the start of the ** real sweep. */

Source from the content-addressed store, hash-verified

1376** real sweep.
1377*/
1378static void entersweep (lua_State *L) {
1379 global_State *g = G(L);
1380 g->gcstate = GCSswpallgc;
1381 lua_assert(g->sweepgc == NULL);
1382 g->sweepgc = sweeptolive(L, &g->allgc);
1383}
1384
1385
1386/*

Callers 3

stepgenfullFunction · 0.85
singlestepFunction · 0.85
fullincFunction · 0.85

Calls 1

sweeptoliveFunction · 0.85

Tested by

no test coverage detected