aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-05 13:22:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-05 13:22:54 -0300
commit457d88eaaa2ac32e4fa0b7c4310cda9bba95d154 (patch)
treed6b17e7f6f91f4b218cbf40cde21d32c38067697 /lgc.c
parent8a1a512c6484b93e8a4ad81f0bffe818a585c1ee (diff)
downloadlua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.tar.gz
lua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.tar.bz2
lua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.zip
configurable minimum size for the string table
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 09293235..884f689f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.127 2002/01/30 17:26:44 roberto Exp roberto $ 2** $Id: lgc.c,v 1.128 2002/03/04 21:32:34 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -366,7 +366,7 @@ static void collectstrings (lua_State *L, int all) {
366 } 366 }
367 } 367 }
368 if (G(L)->strt.nuse < cast(ls_nstr, G(L)->strt.size/4) && 368 if (G(L)->strt.nuse < cast(ls_nstr, G(L)->strt.size/4) &&
369 G(L)->strt.size > 4) 369 G(L)->strt.size > MINSTRTABSIZE*2)
370 luaS_resize(L, G(L)->strt.size/2); /* table is too big */ 370 luaS_resize(L, G(L)->strt.size/2); /* table is too big */
371} 371}
372 372