< prev index next >
src/java.base/share/classes/java/lang/invoke/Invokers.java
Print this page
rev 13064 : 8142334: Improve lazy initialization of java.lang.invoke
Reviewed-by: psandoz, vlivanov, mhaupt
*** 427,441 ****
NF_getCallSiteTarget = new NamedFunction(Invokers.class
.getDeclaredMethod("getCallSiteTarget", Object.class)),
NF_checkCustomized = new NamedFunction(Invokers.class
.getDeclaredMethod("checkCustomized", Object.class))
};
- for (NamedFunction nf : nfs) {
// Each nf must be statically invocable or we get tied up in our bootstraps.
! assert(InvokerBytecodeGenerator.isStaticallyInvocable(nf.member)) : nf;
! nf.resolve();
! }
} catch (ReflectiveOperationException ex) {
throw newInternalError(ex);
}
}
--- 427,438 ----
NF_getCallSiteTarget = new NamedFunction(Invokers.class
.getDeclaredMethod("getCallSiteTarget", Object.class)),
NF_checkCustomized = new NamedFunction(Invokers.class
.getDeclaredMethod("checkCustomized", Object.class))
};
// Each nf must be statically invocable or we get tied up in our bootstraps.
! assert(InvokerBytecodeGenerator.isStaticallyInvocable(nfs));
} catch (ReflectiveOperationException ex) {
throw newInternalError(ex);
}
}
< prev index next >