Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343561

Implement AOT mode for BigApps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • hotspot

      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

            enikitin Evgeny Nikitin
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: