RFR: 8342644: Optimize InvokerBytecodeGenerator for using ClassFile API [v2]

ExE Boss duke at openjdk.org
Sat Oct 19 11:56:33 UTC 2024


On Fri, 18 Oct 2024 23:13:27 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java line 141:
>> 
>>> 139:             case "MH"  -> CD_MH;
>>> 140:             case "DMH" -> CD_DMH;
>>> 141:             case "BMH" -> CD_BMH;
>> 
>> I don't see where DMH and BMH are passed; only see NFI and LFI.
>
> This DMH is derived from invokerName, which comes from java.lang.invoke.LambdaForm.Kind#defaultLambdaName

`"NFI"` and `"LFI"` should probably also be added to this `switch`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21580#discussion_r1807207043


More information about the core-libs-dev mailing list