Re: [Valgrind-users] question about helgrind disable enable checking.

2015-08-10 Thread Rich Prohaska
Hello, Suppose that I have a shared variable that is always updates when a mutex is held and is sometimes read without holding the mutex. The read race is fine for my application. However, I want to use helgrind to check for other races. If I disable/enable checking around the lock free read, th

Re: [Valgrind-users] question about helgrind disable enable checking.

2015-08-09 Thread Philippe Waroquiers
On Fri, 2015-08-07 at 10:36 -0400, Rich Prohaska wrote: > Hello, > > I have observed that helgrind will report erroneous data races on a > variable if checking on that variable is disable and enabled by a > concurrent thread. Can someone explain what is going on? VALGRIND_HG_ENABLE_CHECKING imple