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

Feilong Jiang fjiang at openjdk.org
Tue Jan 20 01:21:37 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!

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

Marked as reviewed by fjiang (Committer).

PR Review: https://git.openjdk.org/jdk/pull/29307#pullrequestreview-3679985930


More information about the hotspot-compiler-dev mailing list