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

Consolidate MutexLockerEx and MutexLocker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • hotspot
    • b19

    Description

      MutexLockerEx is almost identical to MutexLocker, except that it allows NULL and to pass a safepoint checking parameter. These two branches seem like an uninteresting distinction for minimal or likely no performance benefit. The operation takes a lock which will dwarf any predicted branches.

      Also, there's a corresponding MutexUnlocker/MutexLockerEx which seemes even less necessary for performance.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: