RFR: 8353572: x86: AMD platforms miss the check for CLWB feature flag [v3]
Aleksey Shipilev
shade at openjdk.org
Wed Apr 9 18:34:30 UTC 2025
> Noticed this when doing [JDK-8353558](https://bugs.openjdk.org/browse/JDK-8353558). We only check for CLWB feature flag for Intel platforms. But AMD APM (Rev. 3.36—March 2024) tells me there is a CLWB flag in CPUID Fn0000_0007_EBX_x0 leaf as well. It is in the same place as the flag for Intel.
>
> Additional testing:
> - [x] Ad-hoc tests on Ryzen 5950X
Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- Add assert
- Merge branch 'master' into JDK-8353572-amd-clwb
- More feature flag commonning
- Merge branch 'master' into JDK-8353572-amd-clwb
- Fix
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24385/files
- new: https://git.openjdk.org/jdk/pull/24385/files/c9ec23c3..2879eaf7
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24385&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24385&range=01-02
Stats: 2035 lines in 59 files changed: 638 ins; 848 del; 549 mod
Patch: https://git.openjdk.org/jdk/pull/24385.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24385/head:pull/24385
PR: https://git.openjdk.org/jdk/pull/24385
More information about the hotspot-dev
mailing list