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

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

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: