** 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. */
| 1192 | ** in the atomic step. |
| 1193 | */ |
| 1194 | static void markold (global_State *g, GCObject *from, GCObject *to) { |
| 1195 | GCObject *p; |
| 1196 | for (p = from; p != to; p = p->next) { |
| 1197 | if (getage(p) == G_OLD1) { |
| 1198 | lua_assert(!iswhite(p)); |
| 1199 | changeage(p, G_OLD1, G_OLD); /* now they are old */ |
| 1200 | if (isblack(p)) |
| 1201 | reallymarkobject(g, p); |
| 1202 | } |
| 1203 | } |
| 1204 | } |
| 1205 | |
| 1206 | |
| 1207 | /* |
no test coverage detected