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

JVMTI GetObjectMonitorUsage does not return correct recursion count.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      The recursive lock count for an object is not correct, in cases, where
      a monitor is inflated after recursive lightweight locks. In this case,
      the recursion count is taken from the heavy monitor represented by
      the class ObjectMonitor. ObjectMonitor::_recursions is the number of
      times ObjectMonitor::enter() was called to acquire the lock minus
      1. This counter does not include the recursions of lightweight locks,
      that happen before inflating the monitor and is not equal to the
      recursion count from a Java source level point of view.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              asiebenborn Axel Siebenborn
              Reporter:
              asiebenborn Axel Siebenborn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: