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

Function entersweep

3rd/lua-5.4.3/src/lgc.c:1478–1483  ·  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

1476** real sweep.
1477*/
1478static void entersweep (lua_State *L) {
1479 global_State *g = G(L);
1480 g->gcstate = GCSswpallgc;
1481 lua_assert(g->sweepgc == NULL);
1482 g->sweepgc = sweeptolive(L, &g->allgc);
1483}
1484
1485
1486/*

Callers 3

stepgenfullFunction · 0.85
singlestepFunction · 0.85
fullincFunction · 0.85

Calls 1

sweeptoliveFunction · 0.85

Tested by

no test coverage detected