8231921: SelectorImpl.register does not need to set the attachment when it is null
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Oct 7 21:23:47 UTC 2019
> On Oct 7, 2019, at 7:08 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> This is a small improvement to SelectableChannel.register to avoid needing to getAndSet the attachment when initially registered without an attachment. While in the area, I've replaced the use of AtomicReferenceFieldUpdater with a VarHandle. The changes are simple:
>
> http://cr.openjdk.java.net/~alanb/8231921/webrev/index.html <http://cr.openjdk.java.net/~alanb/8231921/webrev/index.html>
Looks all right.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191007/9ca16aeb/attachment-0001.html>
More information about the nio-dev
mailing list