RFR: 8267806: C1: Relax inlining checks for not yet initialized classes

Vladimir Ivanov vlivanov at openjdk.java.net
Mon May 31 08:48:25 UTC 2021


On Wed, 26 May 2021 17:41:33 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> The checks which guide inlining decisions in C1 are too strong: declaring holder class is required to be fully initialized while JVMS only mandates an initialization barrier on resolved class in `invokestatic` case.
> 
> The fix relaxes the checks to rule out only not yet linked classes unless it is an `invokestatic` call site.
> 
> Testing:
> - [x] hs-tier1 - hs-tier9

Thanks for the reviews, Roland and Tobias.

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

PR: https://git.openjdk.java.net/jdk/pull/4211


More information about the hotspot-compiler-dev mailing list