| 481 | |
| 482 | |
| 483 | void luaC_freeall (lua_State *L) { |
| 484 | global_State *g = G(L); |
| 485 | int i; |
| 486 | g->currentwhite = WHITEBITS | bitmask(SFIXEDBIT); /* mask to collect all elements */ |
| 487 | sweepwholelist(L, &g->rootgc); |
| 488 | for (i = 0; i < g->strt.size; i++) /* free all string lists */ |
| 489 | sweepwholelist(L, &g->strt.hash[i]); |
| 490 | } |
| 491 | |
| 492 | |
| 493 | static void markmt (global_State *g) { |