RFR: 8280469: C2: CHA support for interface calls when inlining through method handle linker [v2]
Vladimir Kozlov
kvn at openjdk.org
Tue Nov 4 17:03:46 UTC 2025
On Mon, 3 Nov 2025 18:38:13 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> Expand the optimization for interface calls introduced by [JDK-6986483](https://bugs.openjdk.org/browse/JDK-6986483) to calls through `MethodHandle.linkToInterface`.
>>
>> The implementation is straightforward except the fact that symbolic information is lost during `MemberName` resolution. The fix uses declaring class instead, but it's more conservative than what is done for invokeinterface case.
>>
>> Testing: hs-tier1 - hs-tier5
>
> Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>
> naming
test/hotspot/jtreg/compiler/cha/StrengthReduceInterfaceCall.java line 75:
> 73:
> 74: // Implementation limitation: CHA is not performed by C1 during inlining through MH linkers.
> 75: if (!jdk.test.whitebox.code.Compiler.isC1Enabled()) {
Should you check that C2 is **enabled**?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28094#discussion_r2491326645
More information about the hotspot-compiler-dev
mailing list