< prev index next >

src/hotspot/share/c1/c1_Runtime1.cpp

Print this page
@@ -755,12 +755,12 @@
    }
  #endif
    if (LockingMode == LM_MONITOR) {
      lock->set_obj(obj);
    }
-   assert(LockingMode == LM_LIGHTWEIGHT || obj == lock->obj(), "must match");
-   SharedRuntime::monitor_enter_helper(obj, LockingMode == LM_LIGHTWEIGHT ? nullptr : lock->lock(), current);
+   assert(obj == lock->obj(), "must match");
+   SharedRuntime::monitor_enter_helper(obj, lock->lock(), current);
  JRT_END
  
  
  JRT_LEAF(void, Runtime1::monitorexit(JavaThread* current, BasicObjectLock* lock))
    assert(current == JavaThread::current(), "pre-condition");
< prev index next >