RFR: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead [v2]
Chen Liang
liach at openjdk.org
Mon Apr 7 19:20:22 UTC 2025
On Sun, 6 Apr 2025 08:05:42 GMT, Zihao Lin <duke at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/invoke/MethodTypeForm.java line 71:
>>
>>> 69: // Indexes into lambdaForms:
>>> 70: static final int
>>> 71: LF_INVVIRTUAL = 0, // DMH invokeVirtual
>>
>> You can remove the LF_INTERPRET constant from this list.
>
> OK, removed it.
Now the index 6 is left unused in the LF cache array - we can leave it empty and renumber the cache indices when we add a new entry to cache.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24468#discussion_r2031863311
More information about the core-libs-dev
mailing list