** mark root set and reset all gray lists, to start a new collection */
| 357 | ** mark root set and reset all gray lists, to start a new collection |
| 358 | */ |
| 359 | static void restartcollection (global_State *g) { |
| 360 | g->gray = g->grayagain = NULL; |
| 361 | g->weak = g->allweak = g->ephemeron = NULL; |
| 362 | markobject(g, g->mainthread); |
| 363 | markvalue(g, &g->l_registry); |
| 364 | markmt(g); |
| 365 | markbeingfnz(g); /* mark any finalizing object left from previous cycle */ |
| 366 | } |
| 367 | |
| 368 | /* }====================================================== */ |
| 369 |
no test coverage detected