RFR: 8132306: java/lang/ref/ReferenceEnqueue.java fails with "RuntimeException: Error: poll() returned null; expected ref object"
kim.barrett at oracle.com
Mon Aug 3 20:49:43 UTC 2015
On Jul 31, 2015, at 9:23 AM, Peter Levart <peter.levart at 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.
More information about the hotspot-gc-dev