--- a/src/hotspot/share/runtime/mutex.cpp Sat Dec 08 17:41:17 2018 +0100
+++ b/src/hotspot/share/runtime/mutex.cpp Sat Dec 08 18:52:57 2018 -0500
@@ -1076,9 +1076,9 @@
Monitor * least = get_least_ranked_lock_besides_this(Self->owned_locks());
assert(least != this, "Specification of get_least_... call above");
if (least != NULL && least->rank() <= special) {
- tty->print("Attempting to wait on monitor %s/%d while holding"
- " lock %s/%d -- possible deadlock",
- name(), rank(), least->name(), least->rank());
+ ::tty->print("Attempting to wait on monitor %s/%d while holding"
+ " lock %s/%d -- possible deadlock",
+ name(), rank(), least->name(), least->rank());
assert(false, "Shouldn't block(wait) while holding a lock of rank special");
}
#endif // ASSERT