Skip to content

Commit f49849a

Browse files
author
Hamlin Li
committed
8368893: RISC-V: crash after JDK-8352673 on fastdebug version
Reviewed-by: fyang, dzhang
1 parent 6c2d383 commit f49849a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/hotspot/cpu/riscv/vm_version_riscv.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,8 @@ void VM_Version::common_initialize() {
213213
}
214214

215215
if (UseRVV) {
216-
if (!ext_V.enabled() && FLAG_IS_DEFAULT(UseRVV)) {
217-
warning("RVV is not supported on this CPU");
218-
FLAG_SET_DEFAULT(UseRVV, false);
219-
} else {
220-
// read vector length from vector CSR vlenb
221-
_initial_vector_length = cpu_vector_length();
222-
}
216+
// read vector length from vector CSR vlenb
217+
_initial_vector_length = cpu_vector_length();
223218
}
224219

225220
// Misc Intrinsics that could depend on RVV.

src/hotspot/os_cpu/linux_riscv/vm_version_linux_riscv.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
#endif
101101

102102
uint32_t VM_Version::cpu_vector_length() {
103-
assert(ext_V.enabled(), "should not call this");
104103
return (uint32_t)read_csr(CSR_VLENB);
105104
}
106105

0 commit comments

Comments
 (0)