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

Chen Liang liach at openjdk.org
Sat Oct 18 04:18:00 UTC 2025


On Fri, 17 Oct 2025 22:20:12 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

Archiving the accessors should be fine.

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

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27880#pullrequestreview-3352526259


More information about the security-dev mailing list