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

Function luaC_fullgc

extlibs/lua/src/lgc.c:1603–1612  ·  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

1601** unexpected ways (running finalizers and shrinking some structures).
1602*/
1603void luaC_fullgc (lua_State *L, int isemergency) {
1604 global_State *g = G(L);
1605 lua_assert(!g->gcemergency);
1606 g->gcemergency = isemergency; /* set flag */
1607 if (g->gckind == KGC_INC)
1608 fullinc(L, g);
1609 else
1610 fullgen(L, g);
1611 g->gcemergency = 0;
1612}
1613
1614/* }====================================================== */
1615

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