** Shifts from a minor collection to major collections. It starts in ** the "sweep all" state to clear all objects, which are mostly black ** in generational mode. */
| 1304 | ** in generational mode. |
| 1305 | */ |
| 1306 | static void minor2inc (lua_State *L, global_State *g, lu_byte kind) { |
| 1307 | g->GCmajorminor = g->GCmarked; /* number of live bytes */ |
| 1308 | g->gckind = kind; |
| 1309 | g->reallyold = g->old1 = g->survival = NULL; |
| 1310 | g->finobjrold = g->finobjold1 = g->finobjsur = NULL; |
| 1311 | entersweep(L); /* continue as an incremental cycle */ |
| 1312 | /* set a debt equal to the step size */ |
| 1313 | luaE_setdebt(g, applygcparam(g, STEPSIZE, 100)); |
| 1314 | } |
| 1315 | |
| 1316 | |
| 1317 | /* |
no test coverage detected