RFR for JDK-6963118 Intermittent test failure: test/java/nio/channels/Selector/Wakeup.java fail intermittently (win)
srikalyan.chandrashekar at oracle.com
Tue Dec 17 11:53:34 PST 2013
Hi all, I am working on bug JDK-6963118
- Sensitive timing dependency between events in Main and Sleeper threads
are causes for test failure.
1) Main thread should wait for more than 1sec(made it 3sec) and check
more often than 50ms(made it 1ms) intervals , sleeper thread may be
still waiting for interrupt/wakeup hence main thread waiting for just
1sec to flag a failure is premature. The reason is especially on windows
high priority virus scanners etc run(we faced it when simulating
failures) and kept the system busy.
2) The test is essentially a sequence of 2 events
a)Firing up wakeups/interrupts followed by a
- Main and sleeper thread must step in tandem(synch) which can be
done by checking the sleeper.entries value and yielding the main thread
The webrev is hosted at
Please let me know if you have any comments or suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev