RFR: 8203886: Invoke LambdaMetafactory::altMetafactory exactly from the BootstrapMethodInvoker
Claes Redestad
claes.redestad at oracle.com
Mon May 28 13:00:23 UTC 2018
Hi,
similarly to JDK-8198418[1], we can avoid creation of various
LambdaForms and SpeciesData types in various benchmarks by adapting
calls to the altMetafactory as exactly as possible in the
BootstrapMethodInvoker.
Webrev: http://cr.openjdk.java.net/~redestad/8203886/open.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8203886
As an example, this means something Comparator.comparingInt(s ->
s.hashCode())); uses 14 fewer LFs to set up.
Thanks!
/Claes
[1] https://bugs.openjdk.java.net/browse/JDK-8198418
More information about the core-libs-dev
mailing list