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

Brian Burkhalter bpb at openjdk.org
Mon Sep 18 21:55:21 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: Revert Channel*Stream changes; add BAIS changes; replace test

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

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

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

  Stats: 262 lines in 7 files changed: 123 ins; 128 del; 11 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