RFR: 8353572: x86: AMD platforms miss the check for CLWB feature flag

Aleksey Shipilev shade at openjdk.org
Wed Apr 2 17:55:22 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

-------------

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/24385/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24385&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8353572
  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 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