** mark root set and reset all gray lists, to start a new collection. ** 'GCmarked' is initialized to count the total number of live bytes ** during a cycle. */
| 438 | ** during a cycle. |
| 439 | */ |
| 440 | static void restartcollection (global_State *g) { |
| 441 | cleargraylists(g); |
| 442 | g->GCmarked = 0; |
| 443 | markobject(g, mainthread(g)); |
| 444 | markvalue(g, &g->l_registry); |
| 445 | markmt(g); |
| 446 | markbeingfnz(g); /* mark any finalizing object left from previous cycle */ |
| 447 | } |
| 448 | |
| 449 | /* }====================================================== */ |
| 450 |
no test coverage detected