8368893: RISC-V: crash after JDK-8352673 on fastdebug version

Reviewed-by: fyang, dzhang
This commit is contained in:
Hamlin Li 2025-10-01 08:22:02 +00:00
parent 6c2d383492
commit f49849a5ed
2 changed files with 2 additions and 8 deletions

View File

@ -213,13 +213,8 @@ void VM_Version::common_initialize() {
}
if (UseRVV) {
if (!ext_V.enabled() && FLAG_IS_DEFAULT(UseRVV)) {
warning("RVV is not supported on this CPU");
FLAG_SET_DEFAULT(UseRVV, false);
} else {
// read vector length from vector CSR vlenb
_initial_vector_length = cpu_vector_length();
}
// read vector length from vector CSR vlenb
_initial_vector_length = cpu_vector_length();
}
// Misc Intrinsics that could depend on RVV.

View File

@ -100,7 +100,6 @@
#endif
uint32_t VM_Version::cpu_vector_length() {
assert(ext_V.enabled(), "should not call this");
return (uint32_t)read_csr(CSR_VLENB);
}