From: Julian Seward Date: Tue, 17 May 2005 02:20:35 +0000 (+0000) Subject: A 4999 entry hashtable is too small when there are a huge number (500k X-Git-Tag: svn/VALGRIND_3_0_0~566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a548e818d08ab9cd2478149632c5205871d80aa8;p=thirdparty%2Fvalgrind.git A 4999 entry hashtable is too small when there are a huge number (500k ish) of blocks simultaneously live, and the client is doing intensive malloc/frees. Increase the table size 16-fold. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3752 --- diff --git a/coregrind/m_hashtable.c b/coregrind/m_hashtable.c index e6988536f5..d9748aab84 100644 --- a/coregrind/m_hashtable.c +++ b/coregrind/m_hashtable.c @@ -37,7 +37,7 @@ /* Holds malloc'd but not freed blocks. Static, so zero-inited by default. */ -#define VG_N_CHAINS 4999 /* a prime number */ +#define VG_N_CHAINS 80021 /*4999*/ /* a prime number */ #define VG_CHAIN_NO(aa) (((UWord)(aa)) % VG_N_CHAINS)