RFR: 8342644: Optimize InvokerBytecodeGenerator for using ClassFile API

Shaojin Wen swen at openjdk.org
Sat Oct 19 02:19:06 UTC 2024


On Fri, 18 Oct 2024 13:32:57 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Cache commonly used classDesc to avoid creating ReferenceClassDescImpl every time
>
> 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

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

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


More information about the core-libs-dev mailing list