Condy for LambdaMetafactory?

Luke Sandberg lukes at google.com
Fri Oct 20 20:10:46 UTC 2023


Hi, as part of a custom compiler I am working on I stumbled across
https://bugs.openjdk.org/browse/JDK-8198418 which references invoking
LambdaMetafactory.metafactory from a condy instruction when there are no
bound parameters.

I see that there is support for this in BootstrapMethodInvoker:
https://github.com/openjdk/jdk/blob/77b2394c46bd304ffc0658cb758d971f1f2940b6/src/java.base/share/classes/java/lang/invoke/BootstrapMethodInvoker.java#L136C28-L136C55

But there is no method implementing this signature that i can find.

Is this a half implemented idea from the original condy implementation? Or
am I missing something?  Initially i thought that BootstrapMethodInvoker
might handle the signature delta, but experimentally that is not true :D

Thanks,
-Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231020/ee801e1c/attachment.htm>


More information about the amber-dev mailing list