Skip to content

Commit

Permalink
8310949: RISC-V: Initialize UseUnalignedAccesses
Browse files Browse the repository at this point in the history
Reviewed-by: rehn, vkempik, fyang
  • Loading branch information
luhenry committed Jul 15, 2023
1 parent 19691fa commit e8f66bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hotspot/cpu/riscv/vm_version_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit e8f66bf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.