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

(se) epoll Selector should use epoll_create1 instead of epoll_create

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 15
    • None
    • core-libs
    • b18

      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

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

              Created:
              Updated:
              Resolved: