** mark root set and reset all gray lists, to start a new collection */
| 395 | ** mark root set and reset all gray lists, to start a new collection |
| 396 | */ |
| 397 | static void restartcollection (global_State *g) { |
| 398 | cleargraylists(g); |
| 399 | markobject(g, g->mainthread); |
| 400 | markvalue(g, &g->l_registry); |
| 401 | markmt(g); |
| 402 | markbeingfnz(g); /* mark any finalizing object left from previous cycle */ |
| 403 | } |
| 404 | |
| 405 | /* }====================================================== */ |
| 406 |
no test coverage detected