< prev index next >

src/hotspot/cpu/x86/vm_version_x86.cpp

Print this page




 865   }
 866 
 867   if (supports_sha() && UseSHA) {
 868     if (FLAG_IS_DEFAULT(UseSHA1Intrinsics)) {
 869       FLAG_SET_DEFAULT(UseSHA1Intrinsics, true);
 870     }
 871   } else if (UseSHA1Intrinsics) {
 872     warning("Intrinsics for SHA-1 crypto hash functions not available on this CPU.");
 873     FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
 874   }
 875 
 876   if (UseSHA) {
 877     if (FLAG_IS_DEFAULT(UseSHA256Intrinsics)) {
 878       FLAG_SET_DEFAULT(UseSHA256Intrinsics, true);
 879     }
 880   } else if (UseSHA256Intrinsics) {
 881     warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU.");
 882     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
 883   }
 884 
 885   if (UseSHA) {
 886     if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
 887       FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
 888     }
 889   } else if (UseSHA512Intrinsics) {
 890     warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU.");
 891     FLAG_SET_DEFAULT(UseSHA512Intrinsics, false);
 892   }
 893 
 894   if (!(UseSHA1Intrinsics || UseSHA256Intrinsics || UseSHA512Intrinsics)) {
 895     FLAG_SET_DEFAULT(UseSHA, false);
 896   }
 897 
 898   if (UseAdler32Intrinsics) {
 899     warning("Adler32Intrinsics not available on this CPU.");
 900     FLAG_SET_DEFAULT(UseAdler32Intrinsics, false);
 901   }
 902 
 903   if (!supports_rtm() && UseRTMLocking) {
 904     // Can't continue because UseRTMLocking affects UseBiasedLocking flag
 905     // setting during arguments processing. See use_biased_locking().




 865   }
 866 
 867   if (supports_sha() && UseSHA) {
 868     if (FLAG_IS_DEFAULT(UseSHA1Intrinsics)) {
 869       FLAG_SET_DEFAULT(UseSHA1Intrinsics, true);
 870     }
 871   } else if (UseSHA1Intrinsics) {
 872     warning("Intrinsics for SHA-1 crypto hash functions not available on this CPU.");
 873     FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
 874   }
 875 
 876   if (UseSHA) {
 877     if (FLAG_IS_DEFAULT(UseSHA256Intrinsics)) {
 878       FLAG_SET_DEFAULT(UseSHA256Intrinsics, true);
 879     }
 880   } else if (UseSHA256Intrinsics) {
 881     warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU.");
 882     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
 883   }
 884 
 885   if (UseSHA && supports_avx2() && supports_bmi2()) {
 886     if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
 887       FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
 888     }
 889   } else if (UseSHA512Intrinsics) {
 890     warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU.");
 891     FLAG_SET_DEFAULT(UseSHA512Intrinsics, false);
 892   }
 893 
 894   if (!(UseSHA1Intrinsics || UseSHA256Intrinsics || UseSHA512Intrinsics)) {
 895     FLAG_SET_DEFAULT(UseSHA, false);
 896   }
 897 
 898   if (UseAdler32Intrinsics) {
 899     warning("Adler32Intrinsics not available on this CPU.");
 900     FLAG_SET_DEFAULT(UseAdler32Intrinsics, false);
 901   }
 902 
 903   if (!supports_rtm() && UseRTMLocking) {
 904     // Can't continue because UseRTMLocking affects UseBiasedLocking flag
 905     // setting during arguments processing. See use_biased_locking().


< prev index next >