RFR: 8265403: consolidate definition of CPU features [v4]
iklam at openjdk.java.net
Fri Apr 23 16:27:40 UTC 2021
On Mon, 19 Apr 2021 19:56:45 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> While porting [JDK-8224974](https://bugs.openjdk.java.net/browse/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.
> Doug Simon has updated the pull request incrementally with two additional commits since the last revision:
> - updated date in copyright
> - added blank lines after macros
Marked as reviewed by iklam (Reviewer).
More information about the hotspot-compiler-dev