Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338476 Replace -XX:CacheDataStore with new "AOT" naming scheme
  3. JDK-8341690

[premain] AOTConfigure file should include data for -XX:+RecordTraining

XMLWordPrintable

      When -XX:+RecordTraining is specified for "java -XX:AOTMode=record -XX:AOTConfiguration=foo.aotconfig", the foo.aotconfig file should include TrainingData (see traningData.hpp).

      Currently, foo.aotconfig is a text file (as of JEP 483, AOTConfiguration is simply an alias of the old SharedClassListFile option). However, the premain implementation of TrainingData require direct pointers to HotSpot class metadata such as InstanceKlass and Method. As a result, it's difficult to encode such data into a text file format.

      Proposal:
      When "-XX:AOTMode=record -XX:+RecordTraining" are specified, we will write binary data into the file specified by -XX:AOTConfiguration. The format of this data is exactly the same as the "preimage CDS archive" as implemented in Leyden EA1.

            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: