Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307399 get rid of compatibility ThreadStart/ThreadEnd events for virtual threads
  3. JDK-8309411

Release Note: JVM TI `ThreadStart` and `ThreadEnd` Events Not Sent for Virtual Threads

XMLWordPrintable

      Maintainers of JVM Tool Interface (JVM TI) agents should note that JVM TI now specifies that the `ThreadStart` and `ThreadEnd` events are not sent for virtual threads. This is different from when virtual threads were a preview feature in Java 19 and Java 20. When the feature was in preview, these events were sent for virtual threads even when the `can_support_virtual_threads` capability was not enabled. Agents that wish to be notified when virtual threads start or terminate need to add the `can_support_virtual_threads` capability and enable the `VirtualThreadStart` and `VirtualThreadEnd` events.

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

              Created:
              Updated:
              Resolved: