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

(fc) Cleanup in FileChannel/FileDispatcher native implementation [win]

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 9
    • None
    • core-libs
    • b33

    Backports

      Description

        There can be different Windows API used in some places, which will make the code a bit cleaner.

        - GetFileSizeEx() instead of GetFileSize(),
        - SetFilePointerEx() vs SetFilePointer(),
        - Setting position through OVERLAPPED struct for ReadFile()/WriteFile().

        The already existing tests can be used to make sure nothing is broken with the change.

        Attachments

          Issue Links

            Activity

              People

                igerasim Ivan Gerasimov
                igerasim Ivan Gerasimov
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: