8200238: Reduce number of exceptions created when calling MemberName$Factory::resolveOrNull

Reviewed-by: lfoltan, acorn, dholmes
This commit is contained in:
Claes Redestad 2018-03-29 10:38:29 +02:00
parent dea1bcd6e8
commit 243b2364f6
5 changed files with 35 additions and 13 deletions

View file

@ -2794,7 +2794,7 @@ Handle SystemDictionary::link_method_handle_constant(Klass* caller,
// which MemberName resolution doesn't handle. There's special logic on JDK side to handle them
// (see MethodHandles.linkMethodHandleConstant() and MethodHandles.findVirtualForMH()).
} else {
MethodHandles::resolve_MemberName(mname, caller, CHECK_(empty));
MethodHandles::resolve_MemberName(mname, caller, /*speculative_resolve*/false, CHECK_(empty));
}
// After method/field resolution succeeded, it's safe to resolve MH signature as well.