8321542: C2: Missing ChaCha20 stub for x86_32 leads to crashes
Reviewed-by: chagedorn, shade
This commit is contained in:
parent
c51685267c
commit
5718039a46
@ -1130,6 +1130,7 @@ void VM_Version::get_processor_features() {
|
||||
FLAG_SET_DEFAULT(UseGHASHIntrinsics, false);
|
||||
}
|
||||
|
||||
#ifdef _LP64
|
||||
// ChaCha20 Intrinsics
|
||||
// As long as the system supports AVX as a baseline we can do a
|
||||
// SIMD-enabled block function. StubGenerator makes the determination
|
||||
@ -1145,6 +1146,13 @@ void VM_Version::get_processor_features() {
|
||||
}
|
||||
FLAG_SET_DEFAULT(UseChaCha20Intrinsics, false);
|
||||
}
|
||||
#else
|
||||
// No support currently for ChaCha20 intrinsics on 32-bit platforms
|
||||
if (UseChaCha20Intrinsics) {
|
||||
warning("ChaCha20 intrinsics are not available on this CPU.");
|
||||
FLAG_SET_DEFAULT(UseChaCha20Intrinsics, false);
|
||||
}
|
||||
#endif // _LP64
|
||||
|
||||
// Base64 Intrinsics (Check the condition for which the intrinsic will be active)
|
||||
if (UseAVX >= 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user