summaryrefslogtreecommitdiff
path: root/cachegrind
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-07-03 17:53:11 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-07-03 17:53:11 +0000
commitf69f945020cbcc35fe0c98c3b223d96c7322a95a (patch)
treeddbcd38abbcdd54ad068799fe7d6f676587518c3 /cachegrind
parentb882402acf34540effc0fe0020898453459db0b5 (diff)
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
Diffstat (limited to 'cachegrind')
-rw-r--r--cachegrind/cg_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index 06dd4c9f..d9f4c9f3 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -118,7 +118,7 @@ struct _fileCC {
static fileCC *CC_table[N_FILE_ENTRIES];
//------------------------------------------------------------
-// Primary data structre #2: Instr-info table
+// Primary data structure #2: Instr-info table
// - Holds the cached info about each instr that is used for simulation.
// - table(BB_start_addr, list(instr_info))
// - For each BB, each instr_info in the list holds info about the
@@ -1160,11 +1160,11 @@ static void cg_pre_clo_init(void)
VG_(sprintf)(cachegrind_out_file, "%s/cachegrind.out.%d",
base_dir, VG_(getpid)());
- instr_info_table = VG_(HT_construct)();
+ instr_info_table = VG_(HT_construct)( 4999 ); // prime, biggish
}
VG_DETERMINE_INTERFACE_VERSION(cg_pre_clo_init, 0)
/*--------------------------------------------------------------------*/
-/*--- end cg_main.c ---*/
+/*--- end ---*/
/*--------------------------------------------------------------------*/