RFR: 8377554: Load card table base and other values via AOTRuntimeConstants in AOT code [v8]
Vladimir Kozlov
kvn at openjdk.org
Thu Feb 26 17:52:24 UTC 2026
On Thu, 26 Feb 2026 15:23:45 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
>> Generated stubs and nmethods embed some runtime-derived constants, such as the card table base, directly into code as instruction operands. AOT code generation cannot rely on these constants being valid between the assembly run and a production run and adjusting the constants at load time is not currently supported. So, instead AOT generation must employ code which loads the constants from a table whose address can be relocated at load time.
>
> Andrew Dinn has updated the pull request incrementally with one additional commit since the last revision:
>
> don't bother using explicit extrnal load for C2 RawPtr constants
Marked as reviewed by kvn (Reviewer).
I think it is minot update and we have tested it in premain already. So I will not retest this change again.
My testing show no new failures. Ao I approve these changes.
-------------
PR Review: https://git.openjdk.org/jdk/pull/29884#pullrequestreview-3862624050
PR Comment: https://git.openjdk.org/jdk/pull/29884#issuecomment-3968201516
More information about the hotspot-dev
mailing list