Review JDK-8010837 - TEST_BUG: java/io/FileInputStream/LargeFileAvailable.java fails intermittently (original) (raw)

Dan Xu dan.xu at oracle.com
Tue Mar 26 19:29:29 UTC 2013


Hi All,

In the old JVM function, os::available, it could return negative values because lseek() allows the file offset to be set beyond the end of a file. In the previous change of removing jvm functions, I wasn't aware of that and regardnegative values as invalid and return 0, which causes this test failed if it handles negative values. This fixaddressedthis problem and added a new testcase to ensure the correctbehaviour when available() encounters negative values.

Webrev: http://cr.openjdk.java.net/~dxu/8010837/webrev/

Thanks,

-Dan



More information about the core-libs-dev mailing list