InstanceKlass should use MutexLockerEx to acquire OsrList_lock

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b40

        The osr specific methods of InstanceKlass invoke 'lock_without_safepoint_check()' and 'unlock()' on OsrList_lock. This is hard to read and error prone because we have to explicitly unlock.

        A MutexLockerEx with the '_no_safepoint_check_flag' should be used instead.

              Assignee:
              Tobias Hartmann
              Reporter:
              Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: