MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaC_freeall

Function luaC_freeall

Source/Misc/lua/src/lua.c:6485–6492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

close_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected