In JDK 24, you cannot use -XX:AOTCache in the training run:
$ java -XX:AOTCache=foo.aot -cp HelloWorld.jar \
-XX:AOTMode=record -XX:AOTConfiguration=hw.aotconfig \
HelloWorld
AOTCache must not be specified when using -XX:AOTMode=record
In anticipation of the JEP "Ahead-of-time Command Line Ergonomics" (JDK-8350022), we should allow -XX:AOTCache to be used in the training run, so you can train more than once to build more optimized caches.
$ java -XX:AOTCache=foo.aot -cp HelloWorld.jar \
-XX:AOTMode=record -XX:AOTConfiguration=hw.aotconfig \
HelloWorld
AOTCache must not be specified when using -XX:AOTMode=record
In anticipation of the JEP "Ahead-of-time Command Line Ergonomics" (JDK-8350022), we should allow -XX:AOTCache to be used in the training run, so you can train more than once to build more optimized caches.
- relates to
-
JDK-8325147 Ahead-of-Time Method Profiling
-
- Draft
-