Integrated: 8322726: C2: Unloaded signature class kills argument value

Vladimir Ivanov vlivanov at openjdk.org
Mon May 6 12:23:59 UTC 2024


On Fri, 26 Apr 2024 11:35:25 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> For MethodHandle linkers all arguments are casted to signature classes when target method is known.
> 
> It causes problems when target method signature contains unloaded classes: when loaded class meets unloaded class it turns into a TOP. It effectively kills argument values which correspond to unloaded signature types.
> 
> Proposed fix avoids casts when signature class is unloaded. 
> 
> Testing: hs-tier1 - hs-tier4

This pull request has now been integrated.

Changeset: fa02667d
Author:    Vladimir Ivanov <vlivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fa02667d838f08cac7d41dfb4c3e8056ae6165cc
Stats:     181 lines in 5 files changed: 168 ins; 0 del; 13 mod

8322726: C2: Unloaded signature class kills argument value

Reviewed-by: kvn, dlong, thartmann

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

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


More information about the hotspot-compiler-dev mailing list