RFR: Store cpu features in AOTCodeCache header [v6]
Ashutosh Mehra
asmehra at openjdk.org
Fri Jul 25 14:27:55 UTC 2025
> This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64.
> AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64).
>
> It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table.
> I came across this when I did the assembly run with -XX:UseAVX=0 option.
Ashutosh Mehra has updated the pull request incrementally with two additional commits since the last revision:
- Add dianostic option AOTCodeCPUFeatureCheck to disable cpu feature check
Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>
- Update cpu feature incompatibility test
Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>
-------------
Changes:
- all: https://git.openjdk.org/leyden/pull/84/files
- new: https://git.openjdk.org/leyden/pull/84/files/5f872c11..3628a037
Webrevs:
- full: https://webrevs.openjdk.org/?repo=leyden&pr=84&range=05
- incr: https://webrevs.openjdk.org/?repo=leyden&pr=84&range=04-05
Stats: 278 lines in 4 files changed: 132 ins; 145 del; 1 mod
Patch: https://git.openjdk.org/leyden/pull/84.diff
Fetch: git fetch https://git.openjdk.org/leyden.git pull/84/head:pull/84
PR: https://git.openjdk.org/leyden/pull/84
More information about the leyden-dev
mailing list