(se) Allow SelectableChannel.register to be invoked while selection operation is in progress

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • b11

      SelectableChannel.register is specified to synchronize on the selector's key set and therefore may block if invoked while a selection operation is in progress.

      This issue tracks relaxing this so that register can be invoked without waiting for a selection operation to complete. New registrations or changes to the key's interest set can take effect at the next selection operation.

      The discussion on this topic is here:
      http://mail.openjdk.java.net/pipermail/nio-dev/2018-April/004967.html

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: