< prev index next > src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/JavaVFrame.java
Print this page
private String identifyLockState(MonitorInfo monitor, String waitingState) {
Mark mark = new Mark(monitor.owner());
if (mark.hasMonitor() &&
( // we have marked ourself as pending on this monitor
mark.monitor().equals(thread.getCurrentPendingMonitor()) ||
+ mark.monitor().isOwnedAnonymous() ||
// we are not the owner of this monitor
!mark.monitor().isEntered(thread)
)) {
return waitingState;
}
< prev index next >