|
From: Bart V. A. <bva...@ac...> - 2011-08-28 07:58:05
|
On Sun, Aug 28, 2011 at 5:44 AM, Jeffrey Walton <nol...@gm...> wrote:
> I want to use double checked initialization for a program, but I'm
> catching some warnings from helgrind. A typical use is shown below.
>
> Its kind of tedious to run --gen-suppressions=yes for to develop
> suppressions. Plus, the suppression rules are only applicable to the
> current name mangling scheme.
>
> Is there a helgrind friendly way to write the initialization so that I
> don't get a warning?
One option is to implement the ANNOTATE_IGNORE_*_{BEGIN,END} macros in
Helgrind (see also helgrind/helgrind.h), another option is to use a
data race detection tool in which these macros are implemented.
Bart.
|