MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaC_forcestep

Function luaC_forcestep

freebsd/contrib/openzfs/module/lua/lgc.c:1162–1170  ·  view source on GitHub ↗

** performs a basic GC step */

Source from the content-addressed store, hash-verified

1160** performs a basic GC step
1161*/
1162void luaC_forcestep (lua_State *L) {
1163 global_State *g = G(L);
1164 int i;
1165 if (isgenerational(g)) generationalcollection(L);
1166 else incstep(L);
1167 /* run a few finalizers (or all of them at the end of a collect cycle) */
1168 for (i = 0; g->tobefnz && (i < GCFINALIZENUM || g->gcstate == GCSpause); i++)
1169 GCTM(L, 1); /* call one finalizer */
1170}
1171
1172
1173/*

Callers 2

lua_gcFunction · 0.85
luaC_stepFunction · 0.85

Calls 3

generationalcollectionFunction · 0.85
incstepFunction · 0.85
GCTMFunction · 0.70

Tested by

no test coverage detected