JEP-483 introduces Ahead-of-Time cache which can be used at runtime to speed up startup and warmup of Java applications.
HotSpot BigApps (which are part of test/hotspot/jtreg/applications) need to be extended to be able to run in this mode.
As in case of CDS using AOT cache requires several steps:
1) First, create AOT configuration by running the application (training run)
java -XX:AOTMode=record -XX:AOTConfiguration=app.classlist -cp app.jar App
2) Second, create AOT cache
java -XX:AOTMode=create -XX:AOTConfiguration=app.classlist -XX:AOTCache=app.aot -cp app.jar
3) Finally, run the application with the AOT cache
java -XX:AOTCache=app.aot -cp app.jar
HotSpot BigApps (which are part of test/hotspot/jtreg/applications) need to be extended to be able to run in this mode.
As in case of CDS using AOT cache requires several steps:
1) First, create AOT configuration by running the application (training run)
java -XX:AOTMode=record -XX:AOTConfiguration=app.classlist -cp app.jar App
2) Second, create AOT cache
java -XX:AOTMode=create -XX:AOTConfiguration=app.classlist -XX:AOTCache=app.aot -cp app.jar
3) Finally, run the application with the AOT cache
java -XX:AOTCache=app.aot -cp app.jar