RFR: 8366905: Store AdapterBlob pointer in AdapterHandlerEntry [v4]

Ashutosh Mehra asmehra at openjdk.org
Tue Sep 23 15:03:23 UTC 2025


On Mon, 22 Sep 2025 19:55:09 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>> This PR removes the need to store entry point addresses in AdapterHandlerEntry by storing a direct pointer to AdapterBlob instead. Entry point addresses can be computed on the fly from the entry point offsets stored in AdapterBlob.
>
> Ashutosh Mehra has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Address adinn's review comments
>   
>   Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

The last commit broke Zero VM again. It expects that entry point getter methods in AdapterHandleEntry won't be called for Zero VM, but in `Method::link_method` there is a call to `adapter()->get_c2i_entry();`. I think I will update the getters to remove `ShouldNotReachHere` and just return nullptr.

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

PR Comment: https://git.openjdk.org/jdk/pull/27101#issuecomment-3324403089


More information about the hotspot-dev mailing list