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

Brian Burkhalter bpb at openjdk.org
Fri Aug 26 22:20:24 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 16 additional commits since the last revision:

 - 6478546: Revert use of temporary direct buffers; move parameter checks to Java layer
 - Merge
 - 6478546: Eliminate a subtraction from RandomAccessFile.bufferSize()
 - Merge
 - 6478546: Miscellaneous cleanup
 - Merge
 - Merge
 - 6478546: Use dynamically sized temporary direct buffers
 - Merge
 - Merge
 - ... and 6 more: https://git.openjdk.org/jdk/compare/2f9d07c9...2532c0b3

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/8235/files
  - new: https://git.openjdk.org/jdk/pull/8235/files/9d7e4fbf..2532c0b3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=8235&range=08
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=8235&range=07-08

  Stats: 58452 lines in 1100 files changed: 27738 ins; 25488 del; 5226 mod
  Patch: https://git.openjdk.org/jdk/pull/8235.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/8235/head:pull/8235

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


More information about the core-libs-dev mailing list