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

Clean up uses of ObjectMonitor caches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • master

      The BasicLock and OMCaches shouldn't be used for deoptimization. It's an unnecessary optimization and confuses the code when BasicLock cache is set and needs to be unset.

      The OMCache has some unnecessary shuffling if the lock is found in the BasicLock cache. The code to read caches can be made less duplicative.

      The BasicLock cache needs to be cleared if a deflated monitor is found. That's done in the right place now.

      Some comments need to be added.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: