--- a/src/hotspot/share/runtime/objectMonitor.inline.hpp Tue Aug 13 10:10:42 2019 -0700
+++ b/src/hotspot/share/runtime/objectMonitor.inline.hpp Tue Aug 13 16:13:22 2019 -0400
@@ -77,19 +77,6 @@
_object = obj;
}
-inline bool ObjectMonitor::check(TRAPS) {
- if (THREAD != _owner) {
- if (THREAD->is_lock_owned((address) _owner)) {
- _owner = THREAD; // regain ownership of inflated monitor
- assert (_recursions == 0, "invariant") ;
- } else {
- check_slow(THREAD);
- return false;
- }
- }
- return true;
-}
-
// return number of threads contending for this monitor
inline jint ObjectMonitor::contentions() const {
return _contentions;