8211061: Tests fail with assert(VM_Version::supports_sse4_1()) on ThreadRipper CPU
Reviewed-by: thartmann, roland
--- a/src/hotspot/cpu/x86/vm_version_x86.cpp Tue Sep 25 15:35:31 2018 +0100
+++ b/src/hotspot/cpu/x86/vm_version_x86.cpp Tue Sep 25 16:41:25 2018 +0200
@@ -885,7 +885,7 @@
FLAG_SET_DEFAULT(UseSHA, false);
}
- if (supports_sha() && UseSHA) {
+ if (supports_sha() && supports_sse4_1() && UseSHA) {
if (FLAG_IS_DEFAULT(UseSHA1Intrinsics)) {
FLAG_SET_DEFAULT(UseSHA1Intrinsics, true);
}
@@ -894,7 +894,7 @@
FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
}
- if (UseSHA) {
+ if (supports_sse4_1() && UseSHA) {
if (FLAG_IS_DEFAULT(UseSHA256Intrinsics)) {
FLAG_SET_DEFAULT(UseSHA256Intrinsics, true);
}