RFR: 8286637: (fc) Memory mapped regions bigger than 2GB do not work correctly on Windows [v2]
Brian Burkhalter
bpb at openjdk.java.net
Mon May 16 18:29:36 UTC 2022
On Sat, 14 May 2022 07:59:59 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>>
>> - 8286671: Update test pursuant to JEP 424 integration
>> - Merge
>> - 8286637: Update test with try-with-resources and to print less
>> - 8286637: (fc) Memory mapped regions bigger than 2GB do not work correctly on Windows
>
> test/jdk/java/nio/channels/FileChannel/LargeMapTest.java line 58:
>
>> 56: p.toFile().deleteOnExit();
>> 57: try (RandomAccessFile raf = new RandomAccessFile(FILE, "rw");) {
>> 58: raf.setLength(LENGTH); //~8gb
>
> This is FileChannel test so I'm curious why it uses RAF here. I would have expected it to use FileChannel's position(LENGTH) and then write something as the spec is that this doesn't extend, a later write will extend it.
Fixed by 0ec8134febd4595ed091741ff1bdc45622b6a17d.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8686
More information about the nio-dev
mailing list