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

Cleanup FileDescriptor implementation

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • Verification:
      Not verified

      Description

      The Unix and Windows versions of FileDescriptor.java could be merged leaving only the native code FileDescriptor_md.c forks for the respective OS.

      Additional cleanup might simplify the native code and remove the apparent overlap between FileDescriptor.close0 and FileDescriptor.cleanupClose0.
      Note that sockets use the same method to avoid races to close when calling io_util_md.c:fileClose.

      The FileDescriptor FDCleanup mechanism can be refactored to improve encapsulation and maintainability as suggested.

      http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051253.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: