RFR: 8292937: Improve performance of some read operations of RandomAccessFile [v2]
Сергей Цыпанов
duke at openjdk.org
Fri Aug 26 13:26:57 UTC 2022
On Fri, 26 Aug 2022 12:56:50 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8292937: Move logic into VM side
>
> src/java.base/share/native/libjava/io_util.c line 71:
>
>> 69: jint nread = IO_Read(fd, buf, len);
>> 70: if (nread == -1) {
>> 71: JNU_ThrowIOExceptionWithLastError(env, "Read error");
>
> These methods are specified to throw the more specific I/O exception EOFException at EOF.
You mean this must be changed to
JNU_ThrowByName(env, "java/io/EOFException", NULL);
?
-------------
PR: https://git.openjdk.org/jdk/pull/10031
More information about the core-libs-dev
mailing list