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

Function luaC_forcestep

third-party/lua-5.2.4/src/lgc.c:1163–1171  ·  view source on GitHub ↗

** performs a basic GC step */

Source from the content-addressed store, hash-verified

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

Callers 2

lua_gcFunction · 0.85
luaC_stepFunction · 0.85

Calls 3

generationalcollectionFunction · 0.85
incstepFunction · 0.70
GCTMFunction · 0.70

Tested by

no test coverage detected