]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
A 4999 entry hashtable is too small when there are a huge number (500k
authorJulian Seward <jseward@acm.org>
Tue, 17 May 2005 02:20:35 +0000 (02:20 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 17 May 2005 02:20:35 +0000 (02:20 +0000)
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

coregrind/m_hashtable.c

index e6988536f5f24ef43ed51352b0a4678d94b9be2a..d9748aab84548505799b2ea7b0e9b79c1b405a72 100644 (file)
@@ -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)