** Mark '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. */
| 1105 | ** in the atomic step. |
| 1106 | */ |
| 1107 | static void markold (global_State *g, GCObject *from, GCObject *to) { |
| 1108 | GCObject *p; |
| 1109 | for (p = from; p != to; p = p->next) { |
| 1110 | if (getage(p) == G_OLD1) { |
| 1111 | lua_assert(!iswhite(p)); |
| 1112 | if (isblack(p)) { |
| 1113 | black2gray(p); /* should be '2white', but gray works too */ |
| 1114 | reallymarkobject(g, p); |
| 1115 | } |
| 1116 | } |
| 1117 | } |
| 1118 | } |
| 1119 | |
| 1120 | |
| 1121 | /* |
no test coverage detected