8080775: Better argument formatting for assert() and friends

Reviewed-by: kbarrett, pliden
This commit is contained in:
David Lindholm 2015-09-29 11:02:08 +02:00
parent aa0818a98a
commit 1e71f67736
225 changed files with 1342 additions and 1432 deletions

View file

@ -156,7 +156,7 @@ void assert_locked_or_safepoint(const Monitor * lock) {
// see if invoker of VM operation owns it
VM_Operation* op = VMThread::vm_operation();
if (op != NULL && op->calling_thread() == lock->owner()) return;
fatal(err_msg("must own lock %s", lock->name()));
fatal("must own lock %s", lock->name());
}
// a stronger assertion than the above
@ -164,7 +164,7 @@ void assert_lock_strong(const Monitor * lock) {
if (IgnoreLockingAssertions) return;
assert(lock != NULL, "Need non-NULL lock");
if (lock->owned_by_self()) return;
fatal(err_msg("must own lock %s", lock->name()));
fatal("must own lock %s", lock->name());
}
#endif