Skip to content

Commit a24b08f

Browse files
author
Hamlin Li
committed
8345669: RISC-V: fix client build failure due to AlignVector after JDK-8343827
Reviewed-by: fyang, luhenry
1 parent 25d9deb commit a24b08f

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)) {
@@ -448,6 +444,10 @@ void VM_Version::c2_initialize() {
448444
warning("AES/CTR intrinsics are not available on this CPU");
449445
FLAG_SET_DEFAULT(UseAESCTRIntrinsics, false);
450446
}
447+
448+
if (FLAG_IS_DEFAULT(AlignVector)) {
449+
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
450+
}
451451
}
452452

453453
#endif // COMPILER2

0 commit comments

Comments
 (0)