|
From: <sv...@va...> - 2005-05-17 02:20:40
|
Author: sewardj Date: 2005-05-17 03:20:35 +0100 (Tue, 17 May 2005) New Revision: 3752 Modified: trunk/coregrind/m_hashtable.c Log: 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. Modified: trunk/coregrind/m_hashtable.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_hashtable.c 2005-05-16 23:31:24 UTC (rev 3751) +++ trunk/coregrind/m_hashtable.c 2005-05-17 02:20:35 UTC (rev 3752) @@ -37,7 +37,7 @@ =20 /* Holds malloc'd but not freed blocks. Static, so zero-inited by defau= lt. */ =20 -#define VG_N_CHAINS 4999 /* a prime number */ +#define VG_N_CHAINS 80021 /*4999*/ /* a prime number */ =20 #define VG_CHAIN_NO(aa) (((UWord)(aa)) % VG_N_CHAINS) =20 |