|
From: ERSEK L. <la...@ca...> - 2009-11-05 22:38:45
|
On Thu, 5 Nov 2009, Bart Van Assche wrote: > Can you please post a small self-standing program or comment on > Konstantin's test program > (http://code.google.com/p/data-race-test/source/browse/trunk/unittest/racecheck_unittest.cc#520) > ? I prefer commenting on a program that can be compiled and run instead > of commenting on incomplete program fragments. Konstantin didn't get the false positives described in the manual. What I proposed is only for the case when there's a false positive to avert, so if there's no false positive then my proposition is automatically void. I installed valgrind-3.5.0 from source and wrote a small program: http://pastebin.com/f6a4181c2 (You'll have to hit enter after a second or so when running it.) I didn't get any false positives either. Cheers, lacos |