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