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

(fc) FileChannel.map and RandomAccessFile.setLength should not preallocate space

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u181, 9, 10, 11
    • Fix Version/s: 11
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b12
    • Verification:
      Not verified

      Description

      This issue tracks reverting the changes in JDK-8168628 so that RandomAccessFile.setLength and the FileChannel.map do not call ftruncate64 to pre-allocate disk space. The background to this issue is that JDK-8168628 was mis-diagnosed, the real issue is that bulk transfer operations using Unsafe copyMemory lack memory guards. This requires changes in HotSpot and is tracked as JDK-8191278.

      More discussion on this topic here:
      http://mail.openjdk.java.net/pipermail/nio-dev/2018-April/005041.html

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: