Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322829

Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 23
    • None
    • core-libs
    • b05

      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.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: