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