RFR: 8339299: C1 will miss type profile when inline final method
Vladimir Kozlov
kvn at openjdk.org
Sat Aug 31 00:15:19 UTC 2024
On Fri, 30 Aug 2024 22:23:22 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> > It looks like the test invalidates the initial CHA optimazation that was done when there was only one subclass by loading a 2nd subclass.
>
> Moreover, CHA has to discover a final method in order to satisfy `can_be_statically_bound()` predicate.
Got it. I assume C1 compiled code will be deoptimized in this case (CHA changed). But C2 compilation could be triggered before that and new CH will be used by it. This looks like rare case.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20786#issuecomment-2322625237
More information about the hotspot-compiler-dev
mailing list