Integrated: 8280469: C2: CHA support for interface calls when inlining through method handle linker

Vladimir Ivanov vlivanov at openjdk.org
Tue Nov 18 22:32:20 UTC 2025


On Fri, 31 Oct 2025 21:34:27 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

This pull request has now been integrated.

Changeset: 256a9bef
Author:    Vladimir Ivanov <vlivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/256a9beffc106d6657a912a33f97e7f97acbb1e1
Stats:     206 lines in 4 files changed: 174 ins; 2 del; 30 mod

8280469: C2: CHA support for interface calls when inlining through method handle linker

Reviewed-by: kvn, roland

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

PR: https://git.openjdk.org/jdk/pull/28094


More information about the hotspot-compiler-dev mailing list