--- old/src/hotspot/share/runtime/objectMonitor.cpp 2018-09-17 23:29:07.443746482 -0700 +++ new/src/hotspot/share/runtime/objectMonitor.cpp 2018-09-17 23:29:07.191746491 -0700 @@ -103,7 +103,6 @@ int ObjectMonitor::Knob_SpinLimit = 5000; // derived by an external tool - -static int Knob_OXPenalty = -1; // Penalty for observed _owner change static int Knob_SpinSetSucc = 1; // spinners set the _succ field static int Knob_SpinEarly = 1; static int Knob_SuccEnabled = 1; // futile wake throttling @@ -1864,7 +1863,6 @@ // CONSIDER: use Prefetch::write() to avoid RTS->RTO upgrades // when preparing to LD...CAS _owner, etc and the CAS is likely // to succeed. - int oxpty = Knob_OXPenalty; int sss = Knob_SpinSetSucc; if (sss && _succ == NULL) _succ = Self; Thread * prv = NULL; @@ -1941,9 +1939,7 @@ // Did lock ownership change hands ? if (ox != prv && prv != NULL) { - if (oxpty == -2) break; - if (oxpty == -1) goto Abort; - ctr -= oxpty; + goto Abort; } prv = ox;