** mark root set and reset all gray lists, to start a new collection */
| 335 | ** mark root set and reset all gray lists, to start a new collection |
| 336 | */ |
| 337 | static void restartcollection (global_State *g) { |
| 338 | g->gray = g->grayagain = NULL; |
| 339 | g->weak = g->allweak = g->ephemeron = NULL; |
| 340 | markobject(g, g->mainthread); |
| 341 | markvalue(g, &g->l_registry); |
| 342 | markmt(g); |
| 343 | markbeingfnz(g); /* mark any finalizing object left from previous cycle */ |
| 344 | } |
| 345 | |
| 346 | /* }====================================================== */ |
| 347 |
no test coverage detected