** Enter generational mode. Must go until the end of an atomic cycle ** to ensure that all objects are correctly marked and weak tables ** are cleared. Then, turn all objects into old and finishes the ** collection. */
| 1426 | ** collection. |
| 1427 | */ |
| 1428 | static void entergen (lua_State *L, global_State *g) { |
| 1429 | luaC_runtilstate(L, GCSpause, 1); /* prepare to start a new cycle */ |
| 1430 | luaC_runtilstate(L, GCSpropagate, 1); /* start new cycle */ |
| 1431 | atomic(L); /* propagates all and then do the atomic stuff */ |
| 1432 | atomic2gen(L, g); |
| 1433 | setminordebt(g); /* set debt assuming next cycle will be minor */ |
| 1434 | } |
| 1435 | |
| 1436 | |
| 1437 | /* |
no test coverage detected