Integrated: [leyden] Do not enable -XX:AOTMode=on by default
Ioi Lam
iklam at openjdk.org
Fri Jul 11 15:47:56 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.
This pull request has now been integrated.
Changeset: 14f7c1dc
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/leyden/commit/14f7c1dceda4e5189e772446a8293cd1ea87acb0
Stats: 6 lines in 2 files changed: 0 ins; 5 del; 1 mod
[leyden] Do not enable -XX:AOTMode=on by default
Reviewed-by: shade
-------------
PR: https://git.openjdk.org/leyden/pull/82
More information about the leyden-dev
mailing list