]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Let the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro...
authorBart Van Assche <bvanassche@acm.org>
Sun, 10 Oct 2010 18:53:00 +0000 (18:53 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 10 Oct 2010 18:53:00 +0000 (18:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11421

drd/drd.h

index 28deff31ebaeef02bc2c5684c56ac274713d09a4..370ef9297cd0f3358f7765e47a4a5d9060840d00 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
@@ -468,7 +468,8 @@ inline T ANNOTATE_UNPROTECTED_READ(const volatile T& x) {
       public:                                                          \
         static_var##_annotator()                                       \
         {                                                              \
-           ANNOTATE_BENIGN_RACE(&static_var, #static_var ": " description); \
+           ANNOTATE_BENIGN_RACE_SIZED(&static_var, sizeof(static_var), \
+                                      #static_var ": " description);   \
         }                                                              \
       } the_##static_var##_annotator;                                  \
    }