8211061: Tests fail with assert(VM_Version::supports_sse4_1()) on ThreadRipper CPU
authorrkennke
Tue, 25 Sep 2018 16:41:25 +0200
changeset 51868 92960b0e6191
parent 51867 faafa910a9a5
child 51869 f8f2f7ee52cb
8211061: Tests fail with assert(VM_Version::supports_sse4_1()) on ThreadRipper CPU Reviewed-by: thartmann, roland
src/hotspot/cpu/x86/vm_version_x86.cpp
--- 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);
     }