RFR: 8367780: Enable UseAPX on Intel CPUs only when both APX_F and APX_NCI_NDD_NF cpuid features are present [v3]

Srinivas Vamsi Parasa sparasa at openjdk.org
Tue Sep 16 19:21:28 UTC 2025


> The goal of this PR is to enable APX on Intel CPUs (i.e. enable UseAPX) only when both the APX_F and APX_NCI_NDD_NF cpuid feature flags are present.
> 
> As per the latest update to the Intel APX specification (https://www.intel.com/content/www/us/en/content-details/861610/intel-advanced-performance-extensions-intel-apx-architecture-specification.html ), when APX_F is set, processors also provide CPUID leaf 0x29 (APX Advanced Performance Extensions Leaf). Any Intel processor that enumerates APX_F also enumerates APX_NCI_NDD_NF.
> 
> This PR enhances the HotSpot x86 CPU feature detection to recognize the APX_NCI_NDD_NF sub-feature of Intel APX and update the enabling logic for UseAPX VM flag.

Srinivas Vamsi Parasa has updated the pull request incrementally with one additional commit since the last revision:

  update KNL check

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27320/files
  - new: https://git.openjdk.org/jdk/pull/27320/files/87e96cca..21560d0b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27320&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27320&range=01-02

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27320.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27320/head:pull/27320

PR: https://git.openjdk.org/jdk/pull/27320


More information about the graal-dev mailing list