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

Ioi Lam iklam at openjdk.org
Wed Oct 29 02:53:09 UTC 2025


On Tue, 28 Oct 2025 18:51:40 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.
>
> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updated comments about @AOTSafeClassInitializer in SharedSecrets.java

Thanks everyone for the review!

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

PR Comment: https://git.openjdk.org/jdk/pull/27880#issuecomment-3459415761


More information about the hotspot-runtime-dev mailing list