Skip to content

Commit 303736b

Browse files
author
Hamlin Li
committed
8345669: RISC-V: fix client build failure due to AlignVector after JDK-8343827
Reviewed-by: fyang Backport-of: a24b08f
1 parent 2c33629 commit 303736b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/cpu/riscv/vm_version_riscv.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ void VM_Version::common_initialize() {
154154
unaligned_access.value() != MISALIGNED_FAST);
155155
}
156156

157-
if (FLAG_IS_DEFAULT(AlignVector)) {
158-
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
159-
}
160-
161157
// See JDK-8026049
162158
// This machine has fast unaligned memory accesses
163159
if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) {
@@ -440,6 +436,10 @@ void VM_Version::c2_initialize() {
440436
warning("AES/CTR intrinsics are not available on this CPU");
441437
FLAG_SET_DEFAULT(UseAESCTRIntrinsics, false);
442438
}
439+
440+
if (FLAG_IS_DEFAULT(AlignVector)) {
441+
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
442+
}
443443
}
444444

445445
#endif // COMPILER2

0 commit comments

Comments
 (0)