Integrated: 8265403: consolidate definition of CPU features

Doug Simon dnsimon at
Fri Apr 23 23:35:27 UTC 2021

On Sat, 17 Apr 2021 20:18:31 GMT, Doug Simon <dnsimon at> wrote:

> While porting [JDK-8224974]( to Graal, I noticed that new CPU features were defined for x86 and AArch64 without being exposed via JVMCI. To avoid this problem in future, this PR updates x86 and AArch64 to define CPU features with a single macro that is used to generate enum declarations as well as vmstructs entries.
> In addition, the JVMCI API is updated to exposes the new CPU feature constants and now has a check that ensure these constants are in sync with the underlying macro definition.

This pull request has now been integrated.

Changeset: 5aed446e
Author:    Doug Simon <dnsimon at>
Stats:     493 lines in 15 files changed: 146 ins; 235 del; 112 mod

8265403: consolidate definition of CPU features

Reviewed-by: kvn, iklam



More information about the hotspot-compiler-dev mailing list