equal
deleted
inserted
replaced
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; |