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