- 
    Enhancement 
- 
    Resolution: Unresolved
- 
     P4 P4
- 
    17
                    Replace strings with enums to represent CPU features in sun.hotspot.cpuinfo.CPUInfo. 
public static List<String> getFeatures()
public static boolean hasFeature(String feature)
It enables static and dynamic checks to ensure that JVM and tests agree on CPU features.
test//hotspot/jtreg/compiler/intrinsics/bmi/TestBlsiL.java: if (!CPUInfo.hasFeature("bmi1")) {
test//hotspot/jtreg/compiler/intrinsics/bmi/TestBzhiI2L.java: if (!CPUInfo.hasFeature("bmi2")) {
test//hotspot/jtreg/compiler/intrinsics/bmi/TestLzcntI.java: if (!CPUInfo.hasFeature("lzcnt")) {
 
            
public static List<String> getFeatures()
public static boolean hasFeature(String feature)
It enables static and dynamic checks to ensure that JVM and tests agree on CPU features.
test//hotspot/jtreg/compiler/intrinsics/bmi/TestBlsiL.java: if (!CPUInfo.hasFeature("bmi1")) {
test//hotspot/jtreg/compiler/intrinsics/bmi/TestBzhiI2L.java: if (!CPUInfo.hasFeature("bmi2")) {
test//hotspot/jtreg/compiler/intrinsics/bmi/TestLzcntI.java: if (!CPUInfo.hasFeature("lzcnt")) {
- relates to
- 
                    JDK-8267117 sun/hotspot/whitebox/CPUInfoTest.java fails on Ice Lake -           
- Resolved
 
-