]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Updated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind
authorBart Van Assche <bvanassche@acm.org>
Sun, 28 Feb 2010 09:51:00 +0000 (09:51 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 28 Feb 2010 09:51:00 +0000 (09:51 +0000)
developers mailing list (on February 15, 2010).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11056

drd/drd.h

index 62db36c925452068ea5ec204b7880d3e4af6d8cb..d515c8d9e8df6732c5e9a7ff94ac823cc4fd218b 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
 #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)