** 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. */
| 1219 | ** in the atomic step. |
| 1220 | */ |
| 1221 | static void markold (global_State *g, GCObject *from, GCObject *to) { |
| 1222 | GCObject *p; |
| 1223 | for (p = from; p != to; p = p->next) { |
| 1224 | if (getage(p) == G_OLD1) { |
| 1225 | lua_assert(!iswhite(p)); |
| 1226 | changeage(p, G_OLD1, G_OLD); /* now they are old */ |
| 1227 | if (isblack(p)) |
| 1228 | reallymarkobject(g, p); |
| 1229 | } |
| 1230 | } |
| 1231 | } |
| 1232 | |
| 1233 | |
| 1234 | /* |
no test coverage detected