RFR: 8371718: (sc) Channels.new{Input,Output}Stream can allocate unbounded memory for a socket channel

Brian Burkhalter bpb at openjdk.org
Mon Dec 8 19:21:18 UTC 2025


Clamp read and write to 128k bytes.

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

Commit messages:
 - 8371718: (sc) Channels.new{Input,Output}Stream can allocate unbounded memory for a socket channel

Changes: https://git.openjdk.org/jdk/pull/28705/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28705&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371718
  Stats: 44 lines in 5 files changed: 34 ins; 1 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/28705.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28705/head:pull/28705

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


More information about the nio-dev mailing list