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

compiler/rtm/ tests fail due to monitor deflation at safepoint synchronization

XMLWordPrintable

    • b47
    • generic
    • generic

        Most of compiler/rtm/ tests use inflated monitors because by default RTM locking is disabled for stack locks.
        In order to inflate monitor associated with newly created object these tests use method rtm.AbortProvoker::inflateMonitor.
        After that monitor remains released until actual testing begins. If safepoint synchronization happens when monitor unused, then that monitor will be deflated. As a result RTM-based lock elision won't be used and tests will fail.
        Issue could be reproduced w/ +DeoptimizeALot.

              fzhinkin Filipp Zhinkin
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: