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

Consolidate MutexLockerEx and MutexLocker

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: