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

ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists

    XMLWordPrintable

Details

    • b17

    Description

      ObjectMonitorIterator fails to return the most recent monitor added. It starts with returning the `nextOM()` ObjectMonitor from the `_head` ObjectMonitor but fails to ever return the `_head` ObjectMonitor.
      The current implementation can also not handle that the `_head` is nullptr (no monitors in the system) and returns a null ObjectMonitorIterator. Which is interpreted as `monitor list not supported, too old hotspot VM`.

      Attachments

        Issue Links

          Activity

            People

              aboldtch Axel Boldt-Christmas
              aboldtch Axel Boldt-Christmas
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: