MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaC_fullgc

Function luaC_fullgc

xrepo/packages/l/lua/port/lua/src/lgc.c:1718–1727  ·  view source on GitHub ↗

** Performs a full GC cycle; if 'isemergency', set a flag to avoid ** some operations which could change the interpreter state in some ** unexpected ways (running finalizers and shrinking some structures). */

Source from the content-addressed store, hash-verified

1716** unexpected ways (running finalizers and shrinking some structures).
1717*/
1718void luaC_fullgc (lua_State *L, int isemergency) {
1719 global_State *g = G(L);
1720 lua_assert(!g->gcemergency);
1721 g->gcemergency = isemergency; /* set flag */
1722 if (g->gckind == KGC_INC)
1723 fullinc(L, g);
1724 else
1725 fullgen(L, g);
1726 g->gcemergency = 0;
1727}
1728
1729/* }====================================================== */
1730

Callers 3

tryagainFunction · 0.70
lua_gcFunction · 0.70
growstrtabFunction · 0.70

Calls 2

fullincFunction · 0.85
fullgenFunction · 0.85

Tested by

no test coverage detected