JDK-8329332 : Remove CompiledMethod and CodeBlobLayout classes
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-03-29
  • Updated: 2024-05-03
  • Resolved: 2024-04-04
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 23
23 b18Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Undo JDK-8152664 changes [1] which was used for AOT JEP [2] implementation in JDK 9.  The code was left in HotSpot assuming  it will help in a future. But during work on Leyden for the past year we decided to not use it - cached compiled code will be restored in CodeCache as normal nmethods  (no need to change VM's runtime and GC code to process them).

I propose to revert JDK-8152664 change and remove CompiledMethod and CodeBlobLayout classes to simplify `nmethod` class hierarchy.

[1] https://github.com/openjdk/jdk/commit/b853eb7f5ca24eeeda18acbb14287f706499c365
[2] https://openjdk.org/jeps/295 
Comments
Changeset: 83eba863 Author: Vladimir Kozlov <kvn@openjdk.org> Date: 2024-04-04 19:48:48 +0000 URL: https://git.openjdk.org/jdk/commit/83eba863fec5ee7e30c4f9b11122ad1deed3d2ec
04-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18554 Date: 2024-03-29 19:35:45 +0000
30-03-2024