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

Brian Burkhalter bpb at openjdk.org
Tue Dec 9 18:51:55 UTC 2025


> Clamp read and write to 128k bytes.

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

  8371718: Add tests; fix ChannelOutputStream.write

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28705/files
  - new: https://git.openjdk.org/jdk/pull/28705/files/3f2983ad..956d64b2

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

  Stats: 76 lines in 2 files changed: 75 ins; 0 del; 1 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