MCPcopy Create free account
hub / github.com/DFHack/dfhack / entersweep

Function entersweep

depends/lua/src/lgc.c:959–964  ·  view source on GitHub ↗

** Enter first sweep phase. ** The call to 'sweeplist' tries to make 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

957** real sweep.
958*/
959static void entersweep (lua_State *L) {
960 global_State *g = G(L);
961 g->gcstate = GCSswpallgc;
962 lua_assert(g->sweepgc == NULL);
963 g->sweepgc = sweeplist(L, &g->allgc, 1);
964}
965
966
967void luaC_freeallobjects (lua_State *L) {

Callers 2

singlestepFunction · 0.85
luaC_fullgcFunction · 0.85

Calls 1

sweeplistFunction · 0.85

Tested by

no test coverage detected