8310949: RISC-V: Initialize UseUnalignedAccesses

Reviewed-by: rehn, vkempik, fyang
This commit is contained in:
Ludovic Henry 2023-07-15 06:50:21 +00:00
parent 19691fab48
commit e8f66bf88c

View File

@ -204,6 +204,13 @@ void VM_Version::initialize() {
}
}
// See JDK-8026049
// This machine has fast unaligned memory accesses
if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) {
FLAG_SET_DEFAULT(UseUnalignedAccesses,
unaligned_access.value() == MISALIGNED_FAST);
}
if (UseZbb) {
if (FLAG_IS_DEFAULT(UsePopCountInstruction)) {
FLAG_SET_DEFAULT(UsePopCountInstruction, true);