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

InstanceKlass should use MutexLockerEx to acquire OsrList_lock

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b40

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: