mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8200238: Reduce number of exceptions created when calling MemberName$Factory::resolveOrNull
Reviewed-by: lfoltan, acorn, dholmes
This commit is contained in:
parent
dea1bcd6e8
commit
243b2364f6
5 changed files with 35 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue