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

Brian Burkhalter bpb at openjdk.java.net
Wed May 18 23:02:20 UTC 2022


> Modify native multi-byte read-write code used by the `java.io` classes to limit the size of the allocated native buffer thereby decreasing off-heap memory footprint and increasing throughput.

Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - 6478546: Add break in write loop on ExceptionOccurred
 - Merge
 - 6478546: Clean up io_util.c
 - Merge
 - 6478546: Decrease malloc'ed buffer maximum size to 64 kB
 - 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8235/files
  - new: https://git.openjdk.java.net/jdk/pull/8235/files/5c3a3446..10f14bb3

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8235&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8235&range=02-03

  Stats: 232900 lines in 3152 files changed: 173230 ins; 42904 del; 16766 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8235.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8235/head:pull/8235

PR: https://git.openjdk.java.net/jdk/pull/8235


More information about the core-libs-dev mailing list