MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaC_fullgc

Function luaC_fullgc

3rd/lua-5.4.3/src/lgc.c:1715–1724  ·  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

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

Callers 3

tryagainFunction · 0.85
lua_gcFunction · 0.85
growstrtabFunction · 0.85

Calls 2

fullincFunction · 0.85
fullgenFunction · 0.85

Tested by

no test coverage detected