| 1167 | |
| 1168 | |
| 1169 | static void atomic2gen (lua_State *L, global_State *g) { |
| 1170 | /* sweep all elements making them old */ |
| 1171 | sweep2old(L, &g->allgc); |
| 1172 | /* everything alive now is old */ |
| 1173 | g->reallyold = g->old = g->survival = g->allgc; |
| 1174 | |
| 1175 | /* repeat for 'finobj' lists */ |
| 1176 | sweep2old(L, &g->finobj); |
| 1177 | g->finobjrold = g->finobjold = g->finobjsur = g->finobj; |
| 1178 | |
| 1179 | sweep2old(L, &g->tobefnz); |
| 1180 | |
| 1181 | g->gckind = KGC_GEN; |
| 1182 | g->lastatomic = 0; |
| 1183 | g->GCestimate = gettotalbytes(g); /* base for memory control */ |
| 1184 | finishgencycle(L, g); |
| 1185 | } |
| 1186 | |
| 1187 | |
| 1188 | /* |
no test coverage detected