** Do a sweep step. The normal case (not fast) sweeps at most GCSWEEPMAX ** elements. The fast case sweeps the whole list. */
| 1586 | ** elements. The fast case sweeps the whole list. |
| 1587 | */ |
| 1588 | static void sweepstep (lua_State *L, global_State *g, |
| 1589 | lu_byte nextstate, GCObject **nextlist, int fast) { |
| 1590 | if (g->sweepgc) |
| 1591 | g->sweepgc = sweeplist(L, g->sweepgc, fast ? MAX_LMEM : GCSWEEPMAX); |
| 1592 | else { /* enter next state */ |
| 1593 | g->gcstate = nextstate; |
| 1594 | g->sweepgc = nextlist; |
| 1595 | } |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | /* |
no test coverage detected