Re: [Valgrind-users] helgrind and c++ atomic_flag

2018-09-25 Thread David Faure
On mardi 25 septembre 2018 16:17:48 CEST John Perry wrote: > > On Sep 25, 2018, at 7:02 AM, Tom Hughes wrote: > > > > I don't believe helgrind makes any attempt to observe atomic > > operations so it is entirely unaware of them and of any effect > > they might have on the thread correctness of a

Re: [Valgrind-users] helgrind and c++ atomic_flag

2018-09-25 Thread John Perry
> On Sep 25, 2018, at 7:02 AM, Tom Hughes wrote: > > I don't believe helgrind makes any attempt to observe atomic > operations so it is entirely unaware of them and of any effect > they might have on the thread correctness of a program. > > It would be hard to do because where the compiler is ab

Re: [Valgrind-users] helgrind and c++ atomic_flag

2018-09-25 Thread Tom Hughes
On 25/09/2018 05:44, John Perry wrote: When run in helgrind, the C++ example programs at en.cppreference.com/w/cpp/atomic/atomic_flag and www.cplusplus.com/reference/atomic/atomic_flag/ report a bunch of possible data races. For instance, ==24483== Possible data race during r

[Valgrind-users] helgrind and c++ atomic_flag

2018-09-25 Thread John Perry
Hello! When run in helgrind, the C++ example programs at en.cppreference.com/w/cpp/atomic/atomic_flag and www.cplusplus.com/reference/atomic/atomic_flag/ report a bunch of possible data races. For instance, ==24483== Possible data race during read of size 1 at 0x6051F1 by thre