RFR: 8351871: Disable JIT compiler when dumping AOT cache with -XX:+AOTClassLinking

John R Rose jrose at openjdk.org
Wed Mar 12 21:06:52 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.

And, uh, I might have dropped a ball there.  Here's a stalled paydown of some of that tech debt:

https://github.com/openjdk/jdk/pull/21514

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

PR Comment: https://git.openjdk.org/jdk/pull/24019#issuecomment-2719125944


More information about the hotspot-runtime-dev mailing list