|
From: <sv...@va...> - 2009-06-21 18:08:38
|
Author: bart
Date: 2009-06-21 19:08:31 +0100 (Sun, 21 Jun 2009)
New Revision: 10358
Log:
Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls as level one bitmap creation events.
Modified:
trunk/drd/drd_bitmap.c
Modified: trunk/drd/drd_bitmap.c
===================================================================
--- trunk/drd/drd_bitmap.c 2009-06-21 18:07:35 UTC (rev 10357)
+++ trunk/drd/drd_bitmap.c 2009-06-21 18:08:31 UTC (rev 10358)
@@ -64,8 +64,6 @@
bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm));
DRD_(bm_init)(bm);
- s_bitmap_creation_count++;
-
return bm;
}
@@ -83,7 +81,8 @@
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 @@
}
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)(). */
|