< prev index next > test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCPUFeatureIncompatibilityTest.java
Print this page
/*
+ * Copyright (c) 2025, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
testIncompatibleFeature("-XX:UseSSE=2", "sse3");
}
if (isAVXSupported(cpuFeatures)) {
testIncompatibleFeature("-XX:UseAVX=0", "avx");
}
+
+ /*
+ * Unfortunately -XX:-UseCRC32 does not clear the feature bit in VM_Version::_features!
+ * Disable this test until it is fixed
+ } else if (Platform.isAArch64()) {
+ if (isCRC32Supported(cpuFeatures)) {
+ testIncompatibleFeature("-XX:-UseCRC32", "crc32");
+ }
+ */
}
}
// vmOption = command line option to disable CPU feature
// featureName = name of the CPU feature used by the JVM in the log messages
// Only used on x86-64 platform
static boolean isAVXSupported(List<String> cpuFeatures) {
return cpuFeatures.contains("avx");
}
+
+ // Only used on aarch64 platofrm
+ static boolean isCRC32Supported(List<String> cpuFeatures) {
+ return cpuFeatures.contains("crc32");
+ }
}
< prev index next >