|
From: <sv...@va...> - 2010-02-28 09:51:15
|
Author: bart
Date: 2010-02-28 09:51:00 +0000 (Sun, 28 Feb 2010)
New Revision: 11056
Log:
Updated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind
developers mailing list (on February 15, 2010).
Modified:
trunk/drd/drd.h
Modified: trunk/drd/drd.h
===================================================================
--- trunk/drd/drd.h 2010-02-23 10:49:48 UTC (rev 11055)
+++ trunk/drd/drd.h 2010-02-28 09:51:00 UTC (rev 11056)
@@ -228,10 +228,11 @@
#define ANNOTATE_PCQ_GET(pcq) do { } while(0)
/**
- * Tell DRD that data races in the specified address range are expected and
- * must not be reported.
+ * Tell DRD that data races at the specified address are expected and must not
+ * be reported.
*/
-#define ANNOTATE_BENIGN_RACE(addr, descr) DRDCL_(ignore_range)(addr, 4)
+#define ANNOTATE_BENIGN_RACE(addr, descr) \
+ DRDCL_(ignore_range)(addr, sizeof(*addr))
/** Tell DRD to ignore all reads performed by the current thread. */
#define ANNOTATE_IGNORE_READS_BEGIN() DRDCL_(set_record_loads)(0)
|