On Jan 3, 2015, at 1:01 AM, Bernd Edlinger <bernd.edlin...@hotmail.de> wrote:
> the test case g++.dg/tsan/aligned_vs_unaligned_race.C
> still fails sporadically (around 1 out of 100 times).
> That is apparently a race condition in the tsan runtime itself.
> To make the test reproducible pass, I need to add a sleep(1)
> in one of the two threads.
> 
> 
> Tested really often with:
> make check-gcc-c++ RUNTESTFLAGS="tsan.exp=*"
> 
> OK for trunk?

No.  sleep can never fix race conditions.  The only time sleep can fix a race 
condition would be in a hard real time system, and, that in general doesn’t 
apply to anything in the gcc test suite.

Reply via email to