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

VirtualThreadPinned event recorded for Object.wait may have wrong duration or may record second event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 24, 25
    • hotspot
    • b03

      If a pinned virtual thread waits in Object.wait and then blocks attempting to reenter then the jdk.VirtualThreadPinned event is recorded too early. The event duration should include both the waiting time and the time blocked to reenter.

      In addition, it's possible for two events to be recorded when a pinned virtual thread in Object.wait is interrupted and blocks on reenter. One for the Object.wait, the other for the contended monitor enter.

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

              Created:
              Updated:
              Resolved: