** If possible, shrink string table. */
| 800 | ** If possible, shrink string table. |
| 801 | */ |
| 802 | static void checkSizes (lua_State *L, global_State *g) { |
| 803 | if (!g->gcemergency) { |
| 804 | if (g->strt.nuse < g->strt.size / 4) { /* string table too big? */ |
| 805 | l_mem olddebt = g->GCdebt; |
| 806 | luaS_resize(L, g->strt.size / 2); |
| 807 | g->GCestimate += g->GCdebt - olddebt; /* correct estimate */ |
| 808 | } |
| 809 | } |
| 810 | } |
| 811 | |
| 812 | |
| 813 | /* |
no test coverage detected