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 CSRJDK-8338243 for details)
-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
- csr for
-
JDK-8338243 Add AOT command-line flag aliases
- Closed
- duplicates
-
JDK-8331497 Implement JEP 483: Ahead-of-Time Class Loading & Linking
- Resolved
- links to
-
Review(master) openjdk/jdk/20516