Mercurial > hg > truffle
diff src/share/vm/oops/instanceKlass.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 | e392695de029 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp Sun Oct 11 16:19:25 2009 -0700 +++ b/src/share/vm/oops/instanceKlass.cpp Thu Apr 22 13:23:15 2010 -0700 @@ -966,7 +966,7 @@ // not found #ifdef ASSERT int index = linear_search(methods, name, signature); - if (index != -1) fatal1("binary search bug: should have found entry %d", index); + assert(index == -1, err_msg("binary search should have found entry %d", index)); #endif return NULL; } else if (res < 0) { @@ -977,7 +977,7 @@ } #ifdef ASSERT int index = linear_search(methods, name, signature); - if (index != -1) fatal1("binary search bug: should have found entry %d", index); + assert(index == -1, err_msg("binary search should have found entry %d", index)); #endif return NULL; }