[jdk17u-dev] RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) [v3]

Goetz Lindenmaier goetz at openjdk.org
Wed Oct 29 11:44:54 UTC 2025


> I backport this for parity with 17.0.18-oracle.
> 
> Needed resolve and adaptions:
> 
> Net.java:  resolved static initializer.
> SocketChannelImpl.java: In implCloseBlockingMode(), the code guarded by the new condition is not in 17. Omitted.
> Net.c: Copyright.
> 
> The test exercises platform and virtual threads.
> I simplified this to what is supported in 17.
> See extra commit.

Goetz Lindenmaier has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'master' into goetz_backport_8358764
 - add code from 8284161 along with fix of this change
 - Remove modern Thread code
 - backport 83f9c250221f707be484e0163fe9040f99474412

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

Changes:
  - all: https://git.openjdk.org/jdk17u-dev/pull/4076/files
  - new: https://git.openjdk.org/jdk17u-dev/pull/4076/files/bdb4707e..58cce4b1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4076&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4076&range=01-02

  Stats: 4062 lines in 162 files changed: 3000 ins; 527 del; 535 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/4076.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4076/head:pull/4076

PR: https://git.openjdk.org/jdk17u-dev/pull/4076


More information about the jdk-updates-dev mailing list