RFR: 8368199: Add @AOTSafeClassInitializer to jdk.internal.access.SharedSecrets [v3]

Ioi Lam iklam at openjdk.org
Tue Oct 28 04:15:39 UTC 2025


> By annotating `SharedSecrets` as `@AOTSafeClassInitializer`, we can avoid using the `@AOTRuntimeSetup` annotations in a few JDK core classes. This simplifies the implementation. It also brings us closer to the goal of making the AOT cache as a true snapshot of the JVM state that just needs to be resumed in the production run.

Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into 8368199-add-aot-safe-class-initializer-annotation-to-shared-secrets
 - Added StatelessOopsFinder
 - 8368199: Add @AOTSafeClassInitializer to jdk.internal.access.SharedSecrets

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27880/files
  - new: https://git.openjdk.org/jdk/pull/27880/files/c6ea93c3..6ae1172a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27880&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27880&range=01-02

  Stats: 20837 lines in 485 files changed: 12666 ins; 4954 del; 3217 mod
  Patch: https://git.openjdk.org/jdk/pull/27880.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27880/head:pull/27880

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


More information about the hotspot-runtime-dev mailing list