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

Remove or repurpose unused PerfCounters from objectMonitor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • None
    • hotspot
    • None
    • b03
    • generic
    • generic

      11 out of the 17 defined PerfCounters in objectMonitor.cpp are unused in the sense that they're never incremented or otherwise manipulated after being allocated:

      _sync_EmptyNotifications
      _sync_PrivateA
      _sync_PrivateB
      _sync_SlowExit
      _sync_SlowEnter
      _sync_SlowNotify
      _sync_SlowNotifyAll
      _sync_FailedSpins
      _sync_SuccessfulSpins
      _sync_MonInCirculation
      _sync_MonScavenged

      Since these might be published as a counter via JMX, investigate if some of them should be re-implemented, otherwise remove them

            coleenp Coleen Phillimore
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: