RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]
Brian Burkhalter
bpb at openjdk.java.net
Thu Apr 28 20:33:41 UTC 2022
On Thu, 28 Apr 2022 20:13:48 GMT, Uwe Schindler <uschindler at openjdk.org> wrote:
> By the way: FileOutputStream has exactly the same problem with `write(byte[])`. I see no test for it, but I assume this is now also fixed. That's a longstanding issue in Lucene (this is why we use a ChunkedOutputStream when writing files.
Yes, `write(byte[])` is also fixed: [io_util.c#L164](https://github.com/bplb/jdk/blob/40d46f8f4463dbd7dbe10651910826e90ca4dbdd/src/java.base/share/native/libjava/io_util.c#L164).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8235
More information about the core-libs-dev
mailing list