6963828: TEST_BUG: java/nio/channels/FileTransfer.java takes too long (win)

Alan Bateman Alan.Bateman at oracle.com
Thu Jun 24 05:13:35 PDT 2010


One of FileChannel tests takes an age to run on Windows (10 or 11 
minutes in some cases). All the time is spent creating a 4GB file used 
by one of the sub-tests. The change proposed here creates this big file 
as a sparse file. The result is that the test run is now sub-second on 
all machines that I tried. The webrev is here:
    http://cr.openjdk.java.net/~alanb/6963828/webrev/

-Alan.







More information about the nio-dev mailing list