** Enter first sweep phase. ** The call to 'sweeptolive' makes the pointer point to an object ** inside the list (instead of to the header), so that the real sweep do ** not need to skip objects created between "now" and the start of the ** real sweep. */
| 1502 | ** real sweep. |
| 1503 | */ |
| 1504 | static void entersweep (lua_State *L) { |
| 1505 | global_State *g = G(L); |
| 1506 | g->gcstate = GCSswpallgc; |
| 1507 | lua_assert(g->sweepgc == NULL); |
| 1508 | g->sweepgc = sweeptolive(L, &g->allgc); |
| 1509 | } |
| 1510 | |
| 1511 | |
| 1512 | /* |
no test coverage detected