From 3e9d6730d477f6f7b10b266f519ecca52e67ee80 Mon Sep 17 00:00:00 2001 From: minborg Date: Wed, 14 Jan 2026 12:17:21 +0100 Subject: [PATCH] Add annotation in test --- .../cds/appcds/aotClassLinking/GeneratedInternedString.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/GeneratedInternedString.java b/test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/GeneratedInternedString.java index 04f3965eb21..eeb19e067be 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/GeneratedInternedString.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/GeneratedInternedString.java @@ -35,6 +35,7 @@ * @run driver GeneratedInternedString */ +import jdk.internal.vm.annotation.AOTSafeClassInitializer; import jdk.test.lib.cds.SimpleCDSAppTester; public class GeneratedInternedString { @@ -77,6 +78,7 @@ class GeneratedInternedStringApp { } // A variant using a bespoke record +@AOTSafeClassInitializer record GeneratedInternedStringRecordApp(int value) { static volatile int n = 0;