RFR: 8377554: Load card table base and other values via AOTRuntimeConstants in AOT code [v6]
Andrew Dinn
adinn at openjdk.org
Wed Feb 25 11:37:30 UTC 2026
> 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:
handle external_word reloc on C2 RawPtr constants
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29884/files
- new: https://git.openjdk.org/jdk/pull/29884/files/c46604af..e798100f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29884&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29884&range=04-05
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/29884.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29884/head:pull/29884
PR: https://git.openjdk.org/jdk/pull/29884
More information about the hotspot-dev
mailing list