RFR: 6539707: (fc) MappedByteBuffer.force() method throws an IOException in a very simple test

Alan Bateman alanb at openjdk.java.net
Fri Mar 12 11:26:10 UTC 2021


On Thu, 11 Mar 2021 13:24:12 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Are there any more comments on this PR? Thanks.
>
>> Are there any more comments on this PR? Thanks.
> 
> Not on the javadoc changes, I think that's useful to have.
> 
> Did you manage to reproduce the issue that was reported? Did anyone from Microsoft comment as it looks like a Windows bug that several libraries have been forced to put in workarounds for.
> 
> The changes to MemoryMemoryUtils add line breaks in 5-6 places that probably should be reverted.

Updated patch looks okay and means the spec covers the unlikely case that force can fail.

It would be great if the Microsoft folks could engage on this issue as it screams of a Windows bug that several libraries and runtimes have had to be in workarounds for.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2636


More information about the nio-dev mailing list