Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
1489:cff162798819 | 1490:f03d0a26bf83 |
---|---|
964 if (m->signature() == signature) return m; | 964 if (m->signature() == signature) return m; |
965 } | 965 } |
966 // not found | 966 // not found |
967 #ifdef ASSERT | 967 #ifdef ASSERT |
968 int index = linear_search(methods, name, signature); | 968 int index = linear_search(methods, name, signature); |
969 if (index != -1) fatal1("binary search bug: should have found entry %d", index); | 969 assert(index == -1, err_msg("binary search should have found entry %d", index)); |
970 #endif | 970 #endif |
971 return NULL; | 971 return NULL; |
972 } else if (res < 0) { | 972 } else if (res < 0) { |
973 l = mid + 1; | 973 l = mid + 1; |
974 } else { | 974 } else { |
975 h = mid - 1; | 975 h = mid - 1; |
976 } | 976 } |
977 } | 977 } |
978 #ifdef ASSERT | 978 #ifdef ASSERT |
979 int index = linear_search(methods, name, signature); | 979 int index = linear_search(methods, name, signature); |
980 if (index != -1) fatal1("binary search bug: should have found entry %d", index); | 980 assert(index == -1, err_msg("binary search should have found entry %d", index)); |
981 #endif | 981 #endif |
982 return NULL; | 982 return NULL; |
983 } | 983 } |
984 | 984 |
985 methodOop instanceKlass::uncached_lookup_method(symbolOop name, symbolOop signature) const { | 985 methodOop instanceKlass::uncached_lookup_method(symbolOop name, symbolOop signature) const { |