JDK-8322829 : Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-01-02
  • Updated: 2024-07-25
  • Resolved: 2024-01-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b05Fixed
Related Reports
Relates :  
Description
In preparation for when virtual threads can unmount while holding a monitor or unmount when blocking on monitorenter, the implementation of VirtualThread's interrupt method needs to be refactored to avoid parking/blocking while holding the Thread's interrupt lock. The implementations of sun.nio.ch.Interruptible can be refactored to close/wakeup the InterruptibleChannel/Selector after releasing the interrupt lock.
Comments
Changeset: 7286f529 Author: Alan Bateman <alanb@openjdk.org> Date: 2024-01-09 07:05:27 +0000 URL: https://git.openjdk.org/jdk/commit/7286f5291d6aad290fda778668eeb3a7cbfd8a55
09-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17219 Date: 2024-01-02 10:21:11 +0000
02-01-2024