RFR: 8375657: RISC-V: Need to check size in SharedRuntime::is_wide_vector
Fei Yang
fyang at openjdk.org
Tue Jan 20 01:31:01 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.
Looks reasonable.
-------------
Marked as reviewed by fyang (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29307#pullrequestreview-3679996102
More information about the hotspot-compiler-dev
mailing list