From: Bart Van Assche Date: Sun, 28 Feb 2010 09:51:00 +0000 (+0000) Subject: Updated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind X-Git-Tag: svn/VALGRIND_3_6_0~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6148d8a405d04637b26b6b077dad37665d174a3;p=thirdparty%2Fvalgrind.git 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 --- 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)