RFR for JDK-6963118 Intermittent test failure: test/java/nio/channels/Selector/Wakeup.java fail intermittently (win)

srikalyan srikalyan.chandrashekar at oracle.com
Mon Dec 30 10:47:22 PST 2013

Hi Alan, sorry for the delay. I have been trying to incorporate sleep 
and make the code succeed but getting intermittent failures. The reason 
is it is extremely difficult to synchronize the Sleeper and 
Checker(main) threads as there is not way the Sleeper could communicate 
to Checker that it is successfully blocked on the select() call. At most 
we can mitigate by bring both threads synchronize at a certain point and 
then make the Checker wait for some long time to allow the Sleeper to 
march into and wait at select() call.I will do some repeated runs of 
your version as well(meanwhile trying other ways) and let you know 
before we flag ok on this.

Ph: (408)-585-8040

On 12/30/13, 6:24 AM, Alan Bateman wrote:
> I didn't see any more on this one but I think it would be good to get 
> it fixed and removed from the exclude list. Here's a slightly modified 
> fix that might be a bit clearer:
>   http://cr.openjdk.java.net/~alanb/6963118/webrev/
> If we can agree this then I'll get it into jdk9/dev.
> -Alan.

More information about the nio-dev mailing list