RFR: JDK-8028628 - java/nio/channels/FileChannel/Size.java failed once in the same binary run

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 21 21:52:43 UTC 2013

On 21/11/2013 20:42, Dan Xu wrote:
> Hi Alan,
> When looking at the FileChannel.map() method, it seems that it will 
> not write "e" 4 billion times. Instead, it only extends the file size 
> to testSize+10. It uses ftruncate() in linux and uses SetFilePointer() 
> in Windows, which causes the file offset different on different 
> platforms. But the performance should be good. On windows, this test 
> runs for around 0.14 seconds in jprt machines. Thanks!
Okay, what you have is fine and in time we will see whether it reliable.


More information about the core-libs-dev mailing list