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

Brian Burkhalter bpb at openjdk.org
Fri Jul 28 19:59:15 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.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  6478546: Move buffer clamping up to Java layer; correct read behavior to match legacy

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14981/files
  - new: https://git.openjdk.org/jdk/pull/14981/files/69941de4..92649751

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14981&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14981&range=01-02

  Stats: 102 lines in 4 files changed: 48 ins; 20 del; 34 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