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

Add efficient means to track virtual Threads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None

      For observability reasons, virtual threads created directly with the Thread API need to be tracked (the so called "root container"). For JDK 21, this is a CHM which adds overhead to virtual thread create and termination time. TPTE and ThreadFlock also keep references to Threads in a CHM.

      At least for the root container, this could be implemented with a lock free list of virtual threads.

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

              Created:
              Updated: