MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaC_step

Function luaC_step

lib/lua/src/lgc.c:1690–1700  ·  view source on GitHub ↗

** Performs a basic GC step if collector is running. (If collector is ** not running, set a reasonable debt to avoid it being called at ** every single check.) */

Source from the content-addressed store, hash-verified

1688** every single check.)
1689*/
1690void luaC_step (lua_State *L) {
1691 global_State *g = G(L);
1692 if (!gcrunning(g)) /* not running? */
1693 luaE_setdebt(g, -2000);
1694 else {
1695 if(isdecGCmodegen(g))
1696 genstep(L, g);
1697 else
1698 incstep(L, g);
1699 }
1700}
1701
1702
1703/*

Callers 1

lua_gcFunction · 0.85

Calls 4

luaE_setdebtFunction · 0.85
genstepFunction · 0.85
incstepFunction · 0.85
GFunction · 0.50

Tested by

no test coverage detected