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

(dc) DatagramChannel's socket adaptor does not release carrier thread when blocking in receive

XMLWordPrintable

    • b07

        DatagramChannel is virtual thread friendly, meaning the underlying carrier thread is released when a virtual thread blocks in receive or read.

        DatagramChannel's socket adaptor (used by DatagramSocket) is not currently virtual thread friendly. The original changes proposed to address this in JDK 19 had issues where the underlying temporary direct buffer was being allocated from one carrier, and returned to the buffer cace of a different carrier. It was a performance rather than a correctness issue so we decided to not include this change. This issue needs to re-visited.


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

                Created:
                Updated:
                Resolved: