RFR: 8317269: Store old classes in linked state in AOT cache [v4]

Coleen Phillimore coleenp at openjdk.org
Thu Sep 4 19:15:47 UTC 2025


On Mon, 1 Sep 2025 00:57:54 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> src/hotspot/share/cds/runTimeClassInfo.hpp line 204:
>> 
>>> 202:   u4* old_verifier_dependencies() {
>>> 203:     assert(_num_old_verifier_dependencies > 0, "sanity");
>>> 204:     return (u4*)(address(this) + old_verifier_dependencies_offset());
>> 
>> This seems like it should have a checked_cast<> around it rather than a plain cast.
>
> `checked_cast<>` only checks size difference of the source and target types, but here both are pointer types so they have the same size.

I see.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26754#discussion_r2323112795


More information about the hotspot-dev mailing list