RFR: 8350550: Preload classes from AOT cache during VM bootstrap [v8]
Ashutosh Mehra
asmehra at openjdk.org
Fri Sep 19 18:41:00 UTC 2025
On Fri, 19 Sep 2025 01:41:34 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 27 commits:
>>
>> - Removed JVMCI-specific checks that are no longer necessary with class preloading -- all CP entries discoverable by JVMCI will always point to already-loaded classes
>> - Simplify implementation after JDK-8367366: Do not support -XX:+AOTClassLinking for dynamic CDS archive
>> - Merge branch 'master' into 8350550-preload-aot-classes-during-vm-bootstrap
>> - Merge branch 'master' into 8350550-preload-aot-classes-during-vm-bootstrap
>> - @ashu-mehra comment: removed AOTLinkedClassBulkLoader::is_pending_aot_linked_class
>> - @ashu-mehra review comments
>> - Merge branch 'master' into 8350550-preload-aot-classes-during-vm-bootstrap
>> - Merge branch 'master' into 8350550-preload-aot-classes-during-vm-bootstrap
>> - @DanHeidinga comments -- added comments and asserts about the handling of enums
>> - @DanHeidinga comment - add test: user enum types are not initialized in assembly phase
>> - ... and 17 more: https://git.openjdk.org/jdk/compare/91a97943...04cb7a64
>
> @ashu-mehra , I've remove all the code that was needed to handle aot-linked classes from the dynamic archive but is no longer needed since [JDK-8367366](https://bugs.openjdk.org/browse/JDK-8367366). I am able to remove about 200 lines of code.
>
> I also renamed a few functions in `AOTLinkedClassBulkLoader` to reflect the up-to-date meaning.
>
> `CDSConfig::is_using_preloaded_classes()` has been removed and replaced with `CDSConfig::is_using_aot_linked_classes()`
>
> The handling of `fixup_mirror_list()` and `fixup_module_field_list()` in javaClasses.cpp have been made uniform.
>
> Please see https://github.com/openjdk/jdk/pull/26375/commits/896ce8b9636a5534f1db487afbe27e875022fbfa
@iklam thank you for updating the changes. It is much easier to follow the code now. I have just one additional comment, otherwise looks good.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26375#issuecomment-3313363526
More information about the net-dev
mailing list