aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-06-21 18:08:31 +0000
committerbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-06-21 18:08:31 +0000
commit9f617a890e424f6cda4f5b55355ba15277151106 (patch)
treee7e24fb5c2bfe90a298cff7bee9168de1d89bf19
parentf6ec1fe18f1fc1222fb274d7dfd4343c16048fb1 (diff)
downloadvalgrind-9f617a890e424f6cda4f5b55355ba15277151106.tar.gz
Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls as level one bitmap creation events.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10358 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--drd/drd_bitmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drd/drd_bitmap.c b/drd/drd_bitmap.c
index 7c3c7d5ff..82b6a0648 100644
--- a/drd/drd_bitmap.c
+++ b/drd/drd_bitmap.c
@@ -64,8 +64,6 @@ struct bitmap* DRD_(bm_new)()
bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm));
DRD_(bm_init)(bm);
- s_bitmap_creation_count++;
-
return bm;
}
@@ -83,7 +81,8 @@ void DRD_(bm_init)(struct bitmap* const bm)
unsigned i;
tl_assert(bm);
- /* Cache initialization. a1 is initialized with a value that never can
+ /*
+ * Cache initialization. a1 is initialized with a value that never can
* match any valid address: the upper (ADDR_LSB_BITS + ADDR_IGNORED_BITS)
* bits of a1 are always zero for a valid cache entry.
*/
@@ -94,6 +93,8 @@ void DRD_(bm_init)(struct bitmap* const bm)
}
bm->oset = VG_(OSetGen_Create)(0, 0, DRD_(bm2_alloc_node),
"drd.bitmap.bn.2", DRD_(bm2_free_node));
+
+ s_bitmap_creation_count++;
}
/** Free the memory allocated by DRD_(bm_init)(). */