RFR: [leyden] Do not enable -XX:AOTMode=on by default

Aleksey Shipilev shade at openjdk.org
Fri Jun 27 07:42:04 UTC 2025


On Fri, 27 Jun 2025 04:41:30 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> During early Leyden development, we decided to make `-XX:AOTMode=on` the default to make it easier to diagnose mismatches between training and production runs. However, this make it impossible to run the `make test JTREG=AOT_JDK...` tests:
> 
> 
> $ make test JTREG=AOT_JDK=onestep TEST=open/test/hotspot/jtreg/runtime/invokedynamic
> [...]
> Running test 'jtreg:open/test/hotspot/jtreg/runtime/invokedynamic'
> [0.010s][error][aot] An error has occurred while processing the AOT cache. Run with -Xlog:aot for details.
> [0.010s][error][aot] Mismatched values for property jdk.module.addexports: java.base/jdk.internal.foreign=ALL-UNNAMED,java.base/jdk.internal.misc=ALL-UNNAMED specified during runtime but not during dump time
> [0.010s][error][aot] Disabling optimized module handling
> [0.010s][error][aot] AOT cache has aot-linked classes. It cannot be used when archived full module graph is not used.
> [0.011s][error][aot] Unable to map shared spaces
> failed to get JDK properties:
> 
> 
> Now people should be familiar with using the AOT cache, so this nanny mode isn't necessary more.

Test failures.

There are [runtime/cds/appcds/aotProfile/AOTProfileFlags](https://github.com/iklam/leyden/actions/runs/15918290752#user-content-runtime_cds_appcds_aotprofile_aotprofileflags) test failures, though.

-------------

Changes requested by shade (Committer).

PR Review: https://git.openjdk.org/leyden/pull/82#pullrequestreview-2965157802
PR Comment: https://git.openjdk.org/leyden/pull/82#issuecomment-3012035268


More information about the leyden-dev mailing list