On Sun, 20 Sep 2026 04:39:25 GMT, Ashutosh Mehra <[email protected]> wrote:
>> src/hotspot/share/cds/aotCacheAccess.hpp line 76:
>>
>>> 74: * The encoded pointer is normally obtained by reading a value
>>> embedded in some other AOT-ed entry, like an AOT compiled code.
>>> 75: */
>>> 76: static Klass* narrow_ptr_to_klass(narrowPtr narrowp) {
>>
>> This method and `narrow_ptr_to_method` are now redundant.
>
> actually `narrow_ptr_to_method` is still in use.
After some thinking I decided to put `try_narrow_ptr_to_*` method under
VerifyAOTCode.
Relocation processing is most consuming part of loading AOT code and doing
these checks in offline methods is expensive.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30778#discussion_r4058773087