--- old/src/hotspot/share/runtime/vframe.cpp 2019-08-13 12:39:55.748324797 +0200 +++ new/src/hotspot/share/runtime/vframe.cpp 2019-08-13 12:39:55.452319664 +0200 @@ -224,7 +224,7 @@ if (monitor->owner() != NULL) { // the monitor is associated with an object, i.e., it is locked - markWord mark(0); + 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 @@ -241,9 +241,12 @@ )) { 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(0); + mark = markWord(markWord::zero); } } print_locked_object_class_name(st, Handle(THREAD, monitor->owner()), lock_state);