RFR: 8375657: RISC-V: Need to check size in SharedRuntime::is_wide_vector

Dingli Zhang dzhang at openjdk.org
Tue Jan 20 23:52:43 UTC 2026


On Tue, 20 Jan 2026 01:05:43 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

> Hi,
> Can you help to review this patch? Thanks!
> 
> Currently, we only check `UseRVV` flag in `SharedRuntime::is_wide_vector` on RISC-V platforms. This is not optimal when no vector instructions is used by the nmethod. In this case, the the input size parameter is zero. We should consider this case so that we choose the right sub in `SharedRuntime::get_poll_stub` when handling safepoint.

Thanks all for the review!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29307#issuecomment-3775471047


More information about the hotspot-compiler-dev mailing list