[PATCH] 6350055: Atomic SelectionKey operations

Alan Bateman Alan.Bateman at oracle.com
Tue Apr 17 11:26:30 UTC 2018


On 16/04/2018 23:34, David Lloyd wrote:
> On Fri, Mar 30, 2018 at 7:50 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>> Once the queuing of updates is changed (to drop updateEvents) then this will
>> be a lot simpler.
> Since some of the SelectionKey stuff has settled down a bit, I
> re-rebased this small patch.  I've also located an old bug ID [1]
> which covers this functionality, though it would have to be reopened.
> Given our previous discussion I feel pretty confident that this can be
> done without too much controversy.
>
> The patch is attached and also available online here [2].
The spec looks okay except that it will need to be adjusted once we get 
the changes for JDK-8201315 into jdk/jdk. If we get that in then the 
paragraph on when interestOpsXXX can be called will change to:

"This method may be invoked at any time.  If this method is invoked 
while a selection operation is in progress then it has no effect upon 
that operation; the change to the key's interest set will be seen by 
the  next selection operation."

-Alan


More information about the nio-dev mailing list