Changed m_hashtable.c to allow the size of the hash table to be specified
when it is created. Fortunately this didn't affect code outside this
module except for the calls to VG_(HT_construct)().
As a result, we save some memory because not all tables have to be as big
as the ones needed for malloc/free tracking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4100 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/massif/ms_main.c b/massif/ms_main.c
index 2877d14..f436d0f 100644
--- a/massif/ms_main.c
+++ b/massif/ms_main.c
@@ -1830,7 +1830,7 @@
VG_(register_profile_event)(VgpPrintXPts, "print-XPts");
// HP_Chunks
- malloc_list = VG_(HT_construct)();
+ malloc_list = VG_(HT_construct)( 80021 ); // prime, big
// Dummy node at top of the context structure.
alloc_xpt = new_XPt(0, NULL, /*is_bottom*/False);