** 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. */
| 1376 | ** real sweep. |
| 1377 | */ |
| 1378 | static void entersweep (lua_State *L) { |
| 1379 | global_State *g = G(L); |
| 1380 | g->gcstate = GCSswpallgc; |
| 1381 | lua_assert(g->sweepgc == NULL); |
| 1382 | g->sweepgc = sweeptolive(L, &g->allgc); |
| 1383 | } |
| 1384 | |
| 1385 | |
| 1386 | /* |
no test coverage detected