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

@ -49,7 +49,8 @@ class MethodHandleNatives {
static native void init(MemberName self, Object ref);
static native void expand(MemberName self);
static native MemberName resolve(MemberName self, Class<?> caller) throws LinkageError, ClassNotFoundException;
static native MemberName resolve(MemberName self, Class<?> caller,
boolean speculativeResolve) throws LinkageError, ClassNotFoundException;
static native int getMembers(Class<?> defc, String matchName, String matchSig,
int matchFlags, Class<?> caller, int skip, MemberName[] results);