--- old/src/hotspot/share/runtime/objectMonitor.cpp 2018-09-17 23:28:40.159747433 -0700 +++ new/src/hotspot/share/runtime/objectMonitor.cpp 2018-09-17 23:28:39.943747440 -0700 @@ -101,7 +101,6 @@ // The knob* variables are effectively final. Once set they should // never be modified hence. Consider using __read_mostly with GCC. -int ObjectMonitor::Knob_VerifyMatch = 0; int ObjectMonitor::Knob_SpinLimit = 5000; // derived by an external tool - static int Knob_SpinBase = 0; // Floor AKA SpinMin --- old/src/hotspot/share/runtime/objectMonitor.hpp 2018-09-17 23:28:41.119747399 -0700 +++ new/src/hotspot/share/runtime/objectMonitor.hpp 2018-09-17 23:28:40.859747408 -0700 @@ -195,7 +195,6 @@ static PerfCounter * _sync_Deflations; static PerfLongVariable * _sync_MonExtant; - static int Knob_VerifyMatch; static int Knob_SpinLimit; void* operator new (size_t size) throw(); --- old/src/hotspot/share/runtime/synchronizer.cpp 2018-09-17 23:28:42.015747368 -0700 +++ new/src/hotspot/share/runtime/synchronizer.cpp 2018-09-17 23:28:41.755747377 -0700 @@ -1799,15 +1799,6 @@ ReleaseJavaMonitorsClosure(Thread* thread) : THREAD(thread) {} void do_monitor(ObjectMonitor* mid) { if (mid->owner() == THREAD) { - if (ObjectMonitor::Knob_VerifyMatch != 0) { - ResourceMark rm; - Handle obj(THREAD, (oop) mid->object()); - tty->print("INFO: unexpected locked object:"); - javaVFrame::print_locked_object_class_name(tty, obj, "locked"); - fatal("exiting JavaThread=" INTPTR_FORMAT - " unexpectedly owns ObjectMonitor=" INTPTR_FORMAT, - p2i(THREAD), p2i(mid)); - } (void)mid->complete_exit(CHECK); } }