Integrated: 8377507: Store cpu features in AOTCodeCache

Ashutosh Mehra asmehra at openjdk.org
Tue Feb 17 16:26:30 UTC 2026


On Tue, 10 Feb 2026 15:04:05 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 63f00fff
Author:    Ashutosh Mehra <asmehra at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/63f00fff921ed4ac0f595a0a013d399700433a2c
Stats:     410 lines in 8 files changed: 315 ins; 2 del; 93 mod

8377507: Store cpu features in AOTCodeCache

Reviewed-by: kvn, adinn

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

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


More information about the hotspot-dev mailing list