From 6eb83dfd22114ef4ee5dc9851f01c4df5eccd047 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 21 Jun 2009 18:08:31 +0000 Subject: [PATCH] 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 --- drd/drd_bitmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drd/drd_bitmap.c b/drd/drd_bitmap.c index 7c3c7d5ff1..82b6a06486 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)(). */ -- 2.47.3