| 6483 | |
| 6484 | |
| 6485 | void luaC_freeall (lua_State *L) { |
| 6486 | global_State *g = G(L); |
| 6487 | int i; |
| 6488 | g->currentwhite = WHITEBITS | bitmask(SFIXEDBIT); /* mask to collect all elements */ |
| 6489 | sweepwholelist(L, &g->rootgc); |
| 6490 | for (i = 0; i < g->strt.size; i++) /* free all string lists */ |
| 6491 | sweepwholelist(L, &g->strt.hash[i]); |
| 6492 | } |
| 6493 | |
| 6494 | |
| 6495 | static void markmt (global_State *g) { |