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

Brian Burkhalter bpb at openjdk.org
Fri Jul 21 22:46:53 UTC 2023


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.

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

Commit messages:
 - 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available

Changes: https://git.openjdk.org/jdk/pull/14981/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14981&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-6478546
  Stats: 81 lines in 7 files changed: 29 ins; 15 del; 37 mod
  Patch: https://git.openjdk.org/jdk/pull/14981.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14981/head:pull/14981

PR: https://git.openjdk.org/jdk/pull/14981



More information about the security-dev mailing list