[jdk21u-dev] RFR: 8323782: Race: Thread::interrupt vs. AbstractInterruptibleChannel.begin

Richard Reingruber rrich at openjdk.org
Thu Jun 6 07:59:14 UTC 2024


I'd like to do the backport because jdk 21 is affected by the issue. The included test hangs without the change.
Besides it will reduce the noise in jck tests we're doing regularily (the test api/java_net/ServerSocket/AcceptInterruptibleTests_PlatformThreads fails sometimes because of the issue).

I'd consider the risk low-medium.

Tested with the included test.

The fix passed our CI testing: JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. JCK, SPECjvm2008, SPECjbb2015, Renaissance Suite, and SAP specific tests (also with ParallelGC).
Testing was done with fastdebug builds on the main platforms and also on Linux/PPC64le.

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

Commit messages:
 - Backport 1188d404bc4879fc388209cd32e6c4e46178e200

Changes: https://git.openjdk.org/jdk21u-dev/pull/578/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=578&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8323782
  Stats: 103 lines in 2 files changed: 97 ins; 5 del; 1 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/578.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/578/head:pull/578

PR: https://git.openjdk.org/jdk21u-dev/pull/578


More information about the jdk-updates-dev mailing list