< prev index next >

src/hotspot/cpu/zero/zeroInterpreter_zero.cpp

Print this page
@@ -344,13 +344,10 @@
            monitor->lock()->set_displaced_header(markWord::from_pointer(nullptr));
          } else {
            success = false;
          }
        }
-       if (success) {
-         THREAD->inc_held_monitor_count();
-       }
      }
      if (!success) {
        CALL_VM_NOCHECK(InterpreterRuntime::monitorenter(thread, monitor));
            if (HAS_PENDING_EXCEPTION)
              goto unwind_and_return;

@@ -497,13 +494,10 @@
          if (rcvr->cas_set_mark(header, old_header) != old_header) {
            monitor->set_obj(rcvr);
            success = false;
          }
        }
-       if (success) {
-         THREAD->dec_held_monitor_count();
-       }
      }
      if (!success) {
        InterpreterRuntime::monitorexit(monitor);
      }
    }
< prev index next >