8194494: SHA-512 stub uses AVX 2 instructions on non-supporting CPUs
Check for supports_avx2() && supports_bmi2() before generating SHA-512 stub. Reviewed-by: kvn
This commit is contained in:
parent
98601408f0
commit
34f553d15f
@ -882,7 +882,7 @@ void VM_Version::get_processor_features() {
|
||||
FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
|
||||
}
|
||||
|
||||
if (UseSHA) {
|
||||
if (UseSHA && supports_avx2() && supports_bmi2()) {
|
||||
if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
|
||||
FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user