MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaC_freeall

Function luaC_freeall

deps/lua/src/lgc.c:483–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482
483void 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
493static void markmt (global_State *g) {

Callers 1

close_stateFunction · 0.85

Calls 1

bitmaskClass · 0.50

Tested by

no test coverage detected