JDK 9 RFR of 8172547: (se) Selector.select(Long.MAX_VALUE) fires repeatedly

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jan 13 22:57:04 UTC 2017

Hi Roger,

Thanks for the comments. Here is an update which takes them into account:



On Jan 13, 2017, at 2:23 PM, Roger Riggs <Roger.Riggs at Oracle.com> wrote:

> SelectTimeout:
> - 35: for consistency use the '_' in both constants
> - 40: you may want isTimedOut and theException to be volatile since it is written and read by different threads
> Comment on the existing code:  line 77.
> Using Thread.join(SLEEP_MILLIES) would continue quicker in the case of an exception or for the timeout=0 case.
> It would knock some time off the clock time for the test.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170113/236167b6/attachment.html>

More information about the nio-dev mailing list