RFR: 8351871: Disable JIT compiler when dumping AOT cache with -XX:+AOTClassLinking
Ioi Lam
iklam at openjdk.org
Thu Mar 13 05:09:57 UTC 2025
On Wed, 12 Mar 2025 20:06:15 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> Since [JDK-8348426](https://bugs.openjdk.org/browse/JDK-8348426), when creating the AOT cache with -XX:AOTMode=create, at the very end of normal Java execution, right before we enter the safepoint VM_PopulateDumpSharedSpace, we reset the states of a few Java objects.
>
> Such reset operations can cause the JIT to observe inconsistent states.
>
> While working on a proper fix, this PR is a work-around that disable the JIT during AOT cache creation.
A better fix is https://github.com/openjdk/jdk/pull/24024 . Closing this one without integrating.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24019#issuecomment-2719961357
More information about the hotspot-runtime-dev
mailing list