8068593: Remove or repurpose unused PerfCounters from objectMonitor

Reviewed-by: redestad, dcubed
This commit is contained in:
Coleen Phillimore 2018-02-21 14:08:26 -05:00
parent 7d1735efbb
commit 1a839d0882
2 changed files with 1 additions and 41 deletions

View file

@ -102,8 +102,6 @@ int ObjectMonitor::Knob_Verbose = 0;
int ObjectMonitor::Knob_VerifyInUse = 0;
int ObjectMonitor::Knob_VerifyMatch = 0;
int ObjectMonitor::Knob_SpinLimit = 5000; // derived by an external tool -
static int Knob_LogSpins = 0; // enable jvmstat tally for spins
static int Knob_HandOff = 0;
static int Knob_ReportSettings = 0;
static int Knob_SpinBase = 0; // Floor AKA SpinMin
@ -2229,18 +2227,7 @@ inline void ObjectMonitor::DequeueSpecificWaiter(ObjectWaiter* node) {
PerfCounter * ObjectMonitor::_sync_ContendedLockAttempts = NULL;
PerfCounter * ObjectMonitor::_sync_FutileWakeups = NULL;
PerfCounter * ObjectMonitor::_sync_Parks = NULL;
PerfCounter * ObjectMonitor::_sync_EmptyNotifications = NULL;
PerfCounter * ObjectMonitor::_sync_Notifications = NULL;
PerfCounter * ObjectMonitor::_sync_PrivateA = NULL;
PerfCounter * ObjectMonitor::_sync_PrivateB = NULL;
PerfCounter * ObjectMonitor::_sync_SlowExit = NULL;
PerfCounter * ObjectMonitor::_sync_SlowEnter = NULL;
PerfCounter * ObjectMonitor::_sync_SlowNotify = NULL;
PerfCounter * ObjectMonitor::_sync_SlowNotifyAll = NULL;
PerfCounter * ObjectMonitor::_sync_FailedSpins = NULL;
PerfCounter * ObjectMonitor::_sync_SuccessfulSpins = NULL;
PerfCounter * ObjectMonitor::_sync_MonInCirculation = NULL;
PerfCounter * ObjectMonitor::_sync_MonScavenged = NULL;
PerfCounter * ObjectMonitor::_sync_Inflations = NULL;
PerfCounter * ObjectMonitor::_sync_Deflations = NULL;
PerfLongVariable * ObjectMonitor::_sync_MonExtant = NULL;
@ -2271,18 +2258,7 @@ void ObjectMonitor::Initialize() {
NEWPERFCOUNTER(_sync_ContendedLockAttempts);
NEWPERFCOUNTER(_sync_FutileWakeups);
NEWPERFCOUNTER(_sync_Parks);
NEWPERFCOUNTER(_sync_EmptyNotifications);
NEWPERFCOUNTER(_sync_Notifications);
NEWPERFCOUNTER(_sync_SlowEnter);
NEWPERFCOUNTER(_sync_SlowExit);
NEWPERFCOUNTER(_sync_SlowNotify);
NEWPERFCOUNTER(_sync_SlowNotifyAll);
NEWPERFCOUNTER(_sync_FailedSpins);
NEWPERFCOUNTER(_sync_SuccessfulSpins);
NEWPERFCOUNTER(_sync_PrivateA);
NEWPERFCOUNTER(_sync_PrivateB);
NEWPERFCOUNTER(_sync_MonInCirculation);
NEWPERFCOUNTER(_sync_MonScavenged);
NEWPERFVARIABLE(_sync_MonExtant);
#undef NEWPERFCOUNTER
#undef NEWPERFVARIABLE
@ -2351,7 +2327,6 @@ void ObjectMonitor::DeferredInitialize() {
SETKNOB(SpinBackOff);
SETKNOB(CASPenalty);
SETKNOB(OXPenalty);
SETKNOB(LogSpins);
SETKNOB(SpinSetSucc);
SETKNOB(SuccEnabled);
SETKNOB(SuccRestrict);
@ -2389,10 +2364,6 @@ void ObjectMonitor::DeferredInitialize() {
Knob_FixedSpin = -1;
}
if (Knob_LogSpins == 0) {
ObjectMonitor::_sync_FailedSpins = NULL;
}
os::free(knobs);
OrderAccess::fence();
InitDone = 1;