JDK-8339299 : C1 will miss type profile when inline final method
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-08-30
  • Updated: 2025-06-10
  • Resolved: 2024-09-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b17Fixed
Related Reports
Causes :  
Relates :  
Relates :  
Description
When C1 decide to inline a virtual method based on CHA, it will skip type profile if the method is a final method. And it will prevent C2  to optimize it.
Comments
Changeset: e1c4d303 Branch: master Author: Kuai Wei <kuaiwei.kw@alibaba-inc.com> Date: 2024-09-24 11:08:36 +0000 URL: https://git.openjdk.org/jdk/commit/e1c4d3039f6b5106ce3f65d50f607eacc2a8d168
24-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20786 Date: 2024-08-30 07:25:59 +0000
30-08-2024