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

Brian Burkhalter bpb at openjdk.org
Mon Dec 8 21:41:38 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: Move limit retrieval outside loop

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28705/files
  - new: https://git.openjdk.org/jdk/pull/28705/files/3aa2f796..1e7aefd9

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

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