RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v4]

Brian Burkhalter bpb at openjdk.org
Fri Sep 22 15:54:18 UTC 2023


On Mon, 31 Jul 2023 17:02:15 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Limit native memory allocation and move write loop from the native layer into Java. This change should make the OOME reported in the issue much less likely.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   6478546: do-while -> while-do in writeBytes; remove NULL and bounds checks in native

Still need to derive a valid value for the maximum read/write size by benchmarks which are not just measuring the file system cache.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14981#issuecomment-1731651137



More information about the security-dev mailing list