From b6148d8a405d04637b26b6b077dad37665d174a3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 28 Feb 2010 09:51:00 +0000 Subject: [PATCH] Updated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind developers mailing list (on February 15, 2010). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11056 --- drd/drd.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drd/drd.h b/drd/drd.h index 62db36c925..d515c8d9e8 100644 --- a/drd/drd.h +++ b/drd/drd.h @@ -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) -- 2.47.3