Mercurial > hg > truffle
diff src/share/vm/runtime/mutexLocker.cpp @ 1490:f03d0a26bf83
6888954: argument formatting for assert() and friends
Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author | jcoomes |
---|---|
date | Thu, 22 Apr 2010 13:23:15 -0700 |
parents | 72f725c5a7be |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/share/vm/runtime/mutexLocker.cpp Sun Oct 11 16:19:25 2009 -0700 +++ b/src/share/vm/runtime/mutexLocker.cpp Thu Apr 22 13:23:15 2010 -0700 @@ -136,7 +136,7 @@ // see if invoker of VM operation owns it VM_Operation* op = VMThread::vm_operation(); if (op != NULL && op->calling_thread() == lock->owner()) return; - fatal1("must own lock %s", lock->name()); + fatal(err_msg("must own lock %s", lock->name())); } // a stronger assertion than the above @@ -144,7 +144,7 @@ if (IgnoreLockingAssertions) return; assert(lock != NULL, "Need non-NULL lock"); if (lock->owned_by_self()) return; - fatal1("must own lock %s", lock->name()); + fatal(err_msg("must own lock %s", lock->name())); } #endif