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