RFR: 8377554: Load card table base and other values via AOTRuntimeConstants in AOT code [v4]
Vladimir Kozlov
kvn at openjdk.org
Tue Feb 24 16:44:01 UTC 2026
On Tue, 24 Feb 2026 09:57:33 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
>> AOTRuntimeConstants::card_table_address() returns the address of the field in the static AOTRuntimeConstants object where the card table address (byte_map_base) is stored. So,
>>
>> __ movptr(rscratch, ExternalAddress(AOTRuntimeConstants::card_table_address()));
>>
>> simply loads the address of that field into `rscratch`. We need to load via that address to obtain the actual card table address.
>
> This also needs fixing in premain.
No, `movptr` loads from this address. It is not `lea` instruction.
And `movq` simply moves value from register to register - it does not do anything in this case.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29884#discussion_r2848302213
More information about the hotspot-dev
mailing list