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