** Mark black 'OLD1' objects when starting a new young collection. ** Gray objects are already in some gray list, and so will be visited in ** the atomic step. */
| 1274 | ** the atomic step. |
| 1275 | */ |
| 1276 | static void markold (global_State *g, GCObject *from, GCObject *to) { |
| 1277 | GCObject *p; |
| 1278 | for (p = from; p != to; p = p->next) { |
| 1279 | if (getage(p) == G_OLD1) { |
| 1280 | lua_assert(!iswhite(p)); |
| 1281 | setage(p, G_OLD); /* now they are old */ |
| 1282 | if (isblack(p)) |
| 1283 | reallymarkobject(g, p); |
| 1284 | } |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | |
| 1289 | /* |
no test coverage detected