JDK-8338017 : Add AOT command-line flag aliases
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2024-08-08
  • Updated: 2024-11-15
  • Resolved: 2024-11-15
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
24Resolved
Related Reports
CSR :  
Duplicate :  
Description
Add the following command-line options as specified in JDK-8315737 (JEP 483):

-XX:AOTMode=off/record/create/auto/on
-XX:AOTConfiguration=<file>.aotconfig
-XX:AOTCache=<file>.aot

Examples of existing syntax

java -XX:DumpLoadedClassList=app.classlist -cp app.jar App
java -Xshare:dump -XX:SharedClassListFile=app.classlist -XX:SharedArchiveFile=app.jsa -cp app.jar 
java -XX:SharedArchiveFile=app.jsa -cp app.jar App

Examples of new syntax

java -XX:AOTMode=record -XX:AOTConfiguration=app.classlist -cp app.jar App
java -XX:AOTMode=create -XX:AOTConfiguration=app.classlist -XX:AOTCache=app.aot -cp app.jar 
java -XX:AOTCache=app.aot -cp app.jar 

(See CSR JDK-8338243 for details)
Comments
Fixed as part of JDK-8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking
15-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20516 Date: 2024-08-08 22:50:51 +0000
08-08-2024