From 6ca7b63bce0ce4f1abf418dead256d3e51e41644 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 11 Sep 2013 11:56:15 -0300 Subject: check for shrinking string table done only at the end of a GC cycle --- lstring.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lstring.c') diff --git a/lstring.c b/lstring.c index bd40841d..c73e521c 100644 --- a/lstring.c +++ b/lstring.c @@ -1,5 +1,5 @@ /* -** $Id: lstring.c,v 2.34 2013/09/05 19:31:49 roberto Exp roberto $ +** $Id: lstring.c,v 2.35 2013/09/11 12:26:14 roberto Exp roberto $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -118,8 +118,6 @@ LUAI_FUNC void luaS_remove (lua_State *L, TString *ts) { p = &(*p)->tsv.hnext; *p = (*p)->tsv.hnext; /* remove element from its list */ tb->nuse--; - if (tb->nuse < tb->size/4) - luaS_resize(L, tb->size/2); } -- cgit v1.2.3-55-g6feb