src/hotspot/share/runtime/mutex.cpp
changeset 52913 bf2f2560dd53
parent 52581 d402a406bbc3
child 53646 043ae846819f
equal deleted inserted replaced
52912:f94276ccc9fc 52913:bf2f2560dd53
  1074 
  1074 
  1075   #ifdef ASSERT
  1075   #ifdef ASSERT
  1076   Monitor * least = get_least_ranked_lock_besides_this(Self->owned_locks());
  1076   Monitor * least = get_least_ranked_lock_besides_this(Self->owned_locks());
  1077   assert(least != this, "Specification of get_least_... call above");
  1077   assert(least != this, "Specification of get_least_... call above");
  1078   if (least != NULL && least->rank() <= special) {
  1078   if (least != NULL && least->rank() <= special) {
  1079     tty->print("Attempting to wait on monitor %s/%d while holding"
  1079     ::tty->print("Attempting to wait on monitor %s/%d while holding"
  1080                " lock %s/%d -- possible deadlock",
  1080                  " lock %s/%d -- possible deadlock",
  1081                name(), rank(), least->name(), least->rank());
  1081                  name(), rank(), least->name(), least->rank());
  1082     assert(false, "Shouldn't block(wait) while holding a lock of rank special");
  1082     assert(false, "Shouldn't block(wait) while holding a lock of rank special");
  1083   }
  1083   }
  1084   #endif // ASSERT
  1084   #endif // ASSERT
  1085 
  1085 
  1086   int wait_status;
  1086   int wait_status;