< prev index next >
src/hotspot/share/runtime/vframe.cpp
Print this page
*** 222,232 ****
continue;
}
if (monitor->owner() != NULL) {
// the monitor is associated with an object, i.e., it is locked
! markWord mark(0);
const char *lock_state = "locked"; // assume we have the monitor locked
if (!found_first_monitor && frame_count == 0) {
// If this is the first frame and we haven't found an owned
// monitor before, then we need to see if we have completed
// the lock or if we are blocked trying to acquire it. Only
--- 222,232 ----
continue;
}
if (monitor->owner() != NULL) {
// the monitor is associated with an object, i.e., it is locked
! markWord mark(markWord::zero);
const char *lock_state = "locked"; // assume we have the monitor locked
if (!found_first_monitor && frame_count == 0) {
// If this is the first frame and we haven't found an owned
// monitor before, then we need to see if we have completed
// the lock or if we are blocked trying to acquire it. Only
*** 239,251 ****
// we are not the owner of this monitor
!mark.monitor()->is_entered(thread())
)) {
lock_state = "waiting to lock";
} else {
// We own the monitor which is not as interesting so
// disable the extra printing below.
! mark = markWord(0);
}
}
print_locked_object_class_name(st, Handle(THREAD, monitor->owner()), lock_state);
found_first_monitor = true;
--- 239,254 ----
// we are not the owner of this monitor
!mark.monitor()->is_entered(thread())
)) {
lock_state = "waiting to lock";
} else {
+ // FIXME: mark is set but not used below.
+ // Either the comment or the code is broken.
+
// We own the monitor which is not as interesting so
// disable the extra printing below.
! mark = markWord(markWord::zero);
}
}
print_locked_object_class_name(st, Handle(THREAD, monitor->owner()), lock_state);
found_first_monitor = true;
< prev index next >