changeset 51868:92960b0e6191

8211061: Tests fail with assert(VM_Version::supports_sse4_1()) on ThreadRipper CPU Reviewed-by: thartmann, roland
author rkennke
date Tue, 25 Sep 2018 16:41:25 +0200
parents faafa910a9a5
children f8f2f7ee52cb
files src/hotspot/cpu/x86/vm_version_x86.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }