|
From: Leif W. <lei...@gm...> - 2012-12-04 15:24:13
|
Sent from my iPhone On Dec 4, 2012, at 9:33, Julian Seward <js...@ac...> wrote: > >> It is a race, but one that has the same result as if everything were >> serialized. If three threads all set this bit to 1, that's ok. It's ok >> because they're all trying to write the same thing. > > Do you have suitable memory fences in place, so it won't break in > mysterious ways on targets that deliver stores out-of-order to other > processors, eg Power7? I'm ashamed to say I don't quite understand what can fail here but I'm not worried until I start supporting such architectures. Thanks for the warning though. > > Anyway .. > >> You're right, it is correctly flagged as a race, I'm just hoping to ask it >> to not report this one. > > You might be best off removing the magic macros shown in your first posting, > and instead using Valgrind's suppression mechanism to hide precisely the > error(s) you don't want to see. Ok, thanks. > > J |