8203765: java/nio/channels/Selector/SelectAndClose: add some prints and @intermittent tag

Brian Burkhalter brian.burkhalter at oracle.com
Wed May 30 14:25:09 UTC 2018


On May 30, 2018, at 12:19 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> Good, I think this is the right approach as it re-works the test now as the issues are clear. A few comments:

It was an excellent idea - thanks.

> - no need to add the intermittent tag, that may be left over from your original patch

Shall excise.

> - most of the comment on mightHoldKeySetLock can be replaced with a comment to say that selection operations are specified to synchronize on the selected key set.

I realize it’s overkill. I was clarifying it for myself.

> Also there is nothing in this method that knows anything about selector or the selected-key set so it could be renamed (to drop "KeySet") and the comment can be moved to the while loop in main where it calls the method with the selected-key set.

Yes, I thought of that.

> - no need for the try/catch around selector.close, it's okay to have the main method throw IOException

Will change before the push.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180530/9fac9bea/attachment.html>


More information about the nio-dev mailing list