On Jul 31, 2015, at 9:23 AM, Peter Levart <peter.lev...@gmail.com> wrote: > > This looks good now. Thanks for taking both of the issues together. I wonder > if a similar racy test could be devised for the 2nd race. I doubt the > ReferenceEnqueue test was meant to catch invalid races specifically. It was > more a coincidence that it failed. > > I tried to create a reproducer for 2nd race, but it is not reliable and > sometimes needs several minutes to fail.
I would expect it to be hard to reproduce without patching in a sleep to expand the window of vulnerability, as I did to test for the first race.