RFR: 8374155: Add @AOTSafeClassInitializer to Record [v3]

Per Minborg pminborg at openjdk.org
Fri Jan 9 13:13:13 UTC 2026


On Fri, 9 Jan 2026 12:35:28 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to add the `@AOTSafeClassInitializer` annotation to the `Record` class. This allows user-created records to be annotated with `AOTSafeClassInitializer`.
>> 
>> On multiple platforms, tested and passed:
>>  - [x] tier1
>>  - [x] tier2
>>  - [x] tier3
>>  
>>  Not tested:
>>  - [ ] tier4
>>  - [ ] tier5
>>  - [ ] tier6
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add a real test

test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/GeneratedInternedString.java line 48:

> 46:             .runAOTWorkflow();
> 47: 
> 48:         SimpleCDSAppTester.of("GeneratedInternedString")

Should this be a separate test, or is it ok to tag along on the existing one?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29084#discussion_r2676146498


More information about the hotspot-runtime-dev mailing list