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

(se) epoll Selector should use epoll_create1 instead of epoll_create

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      The epoll Selector creates the epoll file descriptor with epoll_create, it should change to epoll_create1 as the size specified to epoll_create is ignored. epoll_create1 allows the EPOLL_CLOEXEC flag to be specified so it avoids needing to close the file descriptor when a sub-process is created.

      More discussion here:
      https://mail.openjdk.java.net/pipermail/nio-dev/2020-April/007175.html

        Attachments

          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: