RFR: 8316156: (ch) Channels.newOutputStream(ch).write(bigByteArray) allocates a lot of direct memory [v4]

Brian Burkhalter bpb at openjdk.org
Thu Sep 14 22:51:10 UTC 2023


> In `ChannelInputStream` and `ChannelOutputStream`, process small chunks of bytes in sequence to avoid running afoul of the `MaxDirectMemorySize`.

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

  8316156: Read at most DEFAULT_BUFFER_SIZE bytes

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15733/files
  - new: https://git.openjdk.org/jdk/pull/15733/files/c336780d..894d83ac

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

  Stats: 24 lines in 2 files changed: 3 ins; 12 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/15733.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15733/head:pull/15733

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


More information about the nio-dev mailing list