MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / checkSizes

Function checkSizes

third-party/lua-5.5.0/src/lgc.c:935–940  ·  view source on GitHub ↗

** If possible, shrink string table. */

Source from the content-addressed store, hash-verified

933** If possible, shrink string table.
934*/
935static void checkSizes (lua_State *L, global_State *g) {
936 if (!g->gcemergency) {
937 if (g->strt.nuse < g->strt.size / 4) /* string table too big? */
938 luaS_resize(L, g->strt.size / 2);
939 }
940}
941
942
943/*

Callers 2

finishgencycleFunction · 0.70
singlestepFunction · 0.70

Calls 1

luaS_resizeFunction · 0.70

Tested by

no test coverage detected