RFR: 8187826: Avoid using reflection to bootstrap NamedFunctions

Claes Redestad claes.redestad at oracle.com
Fri Sep 22 14:47:09 UTC 2017


Hi,

please review this fix to resolve MemberNames instead of
going via reflection to get the Method when setting up
various NamedFunctions, since this no longer appears to be
necessary to break bootstrap cycles:

Webrev: http://cr.openjdk.java.net/~redestad/8187826/jdk.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8187826

This avoids loading a few classes and reduces cycles taken
to bootstrap indy by ~2M (1.4%) and instructions count by
~1M (0.7%) in a minimal MH-exercising test.

Thanks!

/Claes



More information about the core-libs-dev mailing list