Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200257

(se) More Selector cleanup, part 3

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      The implementations of implReg and implDereg have a lot of duplicate code, this can be moved up to SelectorImpl to avoid the duplication.

      Several of Selector implementation use a BitSet to track if a file descriptor is registrated. This can be improved by recording the registered events in the selection key.

      The select based Selector implementation on Windows is not aligned with the other implementations, in particular its implReg and putEventOps update the poll array directly. In addition, it maintains its own closed status which is not needed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: