** 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). */
| 1713 | ** unexpected ways (running finalizers and shrinking some structures). |
| 1714 | */ |
| 1715 | void 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 |
no test coverage detected