mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8068592: Remove unused code in objectMonitor.hpp
Reviewed-by: dholmes, redestad, gthornbr
This commit is contained in:
parent
4d5d6cabdd
commit
8f7e6e317c
3 changed files with 4 additions and 34 deletions
|
@ -131,8 +131,6 @@ static int Knob_MoveNotifyee = 2; // notify() - disposition of noti
|
|||
static int Knob_QMode = 0; // EntryList-cxq policy - queue discipline
|
||||
static volatile int InitDone = 0;
|
||||
|
||||
#define TrySpin TrySpin_VaryDuration
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Theory of operations -- Monitors lists, thread residency, etc:
|
||||
//
|
||||
|
@ -1848,13 +1846,8 @@ void ObjectMonitor::notifyAll(TRAPS) {
|
|||
// hysteresis control to damp the transition rate between spinning and
|
||||
// not spinning.
|
||||
|
||||
intptr_t ObjectMonitor::SpinCallbackArgument = 0;
|
||||
int (*ObjectMonitor::SpinCallbackFunction)(intptr_t, int) = NULL;
|
||||
|
||||
// Spinning: Fixed frequency (100%), vary duration
|
||||
|
||||
|
||||
int ObjectMonitor::TrySpin_VaryDuration(Thread * Self) {
|
||||
int ObjectMonitor::TrySpin(Thread * Self) {
|
||||
// Dumb, brutal spin. Good for comparative measurements against adaptive spinning.
|
||||
int ctr = Knob_FixedSpin;
|
||||
if (ctr != 0) {
|
||||
|
@ -1948,11 +1941,6 @@ int ObjectMonitor::TrySpin_VaryDuration(Thread * Self) {
|
|||
goto Abort; // abrupt spin egress
|
||||
}
|
||||
if (Knob_UsePause & 1) SpinPause();
|
||||
|
||||
int (*scb)(intptr_t,int) = SpinCallbackFunction;
|
||||
if (hits > 50 && scb != NULL) {
|
||||
int abend = (*scb)(SpinCallbackArgument, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (Knob_UsePause & 2) SpinPause();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue