RFR: 8377507: Store cpu features in AOTCodeCache [v6]

Ashutosh Mehra asmehra at openjdk.org
Tue Feb 17 14:52:51 UTC 2026


> This PR adds the ability to cache and validate cpu features in the AOTCodeCache. It adds new APIs to `Abstract_VM_Version` to facilitate retrieval, storage and validation of cpu features between assembly phase and production run. Default implementation of these APIs is no-op. Each platform that supports AOTCodeCache can implement these APIs in the arch-specific `VM_Version` class.
> This patch follows the Leyden premain implementation. It allows the cpu feature set of the production run to be a super-set of that of the assembly phase. This may change in future if we decide to that the cpu feature set should be the exact match.

Ashutosh Mehra has updated the pull request incrementally with one additional commit since the last revision:

  Log additional cpu features when not empty
  
  Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29655/files
  - new: https://git.openjdk.org/jdk/pull/29655/files/e07b7da2..68195fec

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29655&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29655&range=04-05

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

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


More information about the hotspot-dev mailing list