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

Ioi Lam iklam at openjdk.org
Wed Mar 12 20:11:25 UTC 2025


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.

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

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

Changes: https://git.openjdk.org/jdk/pull/24019/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24019&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351871
  Stats: 6 lines in 1 file changed: 5 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/24019.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24019/head:pull/24019

PR: https://git.openjdk.org/jdk/pull/24019


More information about the hotspot-runtime-dev mailing list