Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8328083 degrade virtual thread support for GetObjectMonitorUsage
  3. JDK-8331465

Release Note: The JVM TI `GetObjectMonitorUsage` Function No Longer Supports Virtual Threads

XMLWordPrintable

      The JVM TI function `GetObjectMonitorUsage` has been respecified in this release to not return monitor information when a monitor is owned by a virtual thread. It is now specified to return the monitor owner only when the monitor is owned by a platform thread. Furthermore, the array of threads waiting to own, and the array of threads waiting to be notified, that the function returns, are now respecified to only include platform threads.

      The corresponding JDWP command `ObjectReference.MonitorInfo` is respecified. The methods `owningThread()`, `waitingThreads()`, and `entryCount()` defined by `com.sun.jdi.ObjectReference` are also respecified.

            sspitsyn Serguei Spitsyn
            sspitsyn Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: