** 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. */
| 1291 | ** collection. |
| 1292 | */ |
| 1293 | static lu_mem entergen (lua_State *L, global_State *g) { |
| 1294 | lu_mem numobjs; |
| 1295 | luaC_runtilstate(L, bitmask(GCSpause)); /* prepare to start a new cycle */ |
| 1296 | luaC_runtilstate(L, bitmask(GCSpropagate)); /* start new cycle */ |
| 1297 | numobjs = atomic(L); /* propagates all and then do the atomic stuff */ |
| 1298 | atomic2gen(L, g); |
| 1299 | return numobjs; |
| 1300 | } |
| 1301 | |
| 1302 | |
| 1303 | /* |
no test coverage detected