RFR: 8360743: Enables regeneration of JLI holder classes for CDS static dump [v2]

Chen Liang liach at openjdk.org
Mon Jun 30 16:27:42 UTC 2025


On Fri, 27 Jun 2025 00:52:10 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> This patch enables regeneration of JLI holder classes when dumping method handles, i.e. when dumping heap and aot linked classes. It also addresses an issue if the nest host of a class is excluded during dumping, the class should also be excluded.
>> 
>> Passed tiers 1 - 5 testing.
>
> Calvin Cheung has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
> 
>  - Merge branch 'master' into 8360743-enables-regen-JLI-holder
>  - 8360743: Enables regeneration of JLI holder classes for CDS static dump

src/hotspot/share/cds/aotArtifactFinder.cpp line 251:

> 249:     }
> 250: 
> 251:     InstanceKlass* nest_host = ik->nest_host_or_null();

Just curious, what is this nest host treatment for? I don't think the generated Holder classes have the NestHost attribute, despite them being listed in NestMembers of their top level classes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26007#discussion_r2175468162


More information about the hotspot-runtime-dev mailing list