Integrated: 8345047: RISC-V: Remove explicit use of AvoidUnalignedAccesses in interpreter

Fei Yang fyang at openjdk.org
Wed Nov 27 10:28:44 UTC 2024


On Tue, 26 Nov 2024 10:19:40 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Hi, please consider this small interpreter cleanup change.
> 
> The use of `AvoidUnalignedAccesses` option for these cases doen't much sense to me.
> MacroAssembler routines like `revb_h_h_u` and `revb_h_h` will emit 5 instructions when Zbb extension is not available. This is more than the case when `AvoidUnalignedAccesses` option is true. After this change, we always emit 4 instructions compared to 3 instructions in the case when we have Zbb extension. But I don't think it will make a difference.
> 
> Testing on linux-riscv64 platform:
> - [x] tier1 (release)

This pull request has now been integrated.

Changeset: 82137db2
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/82137db24da7e922c18036eca80291abce5d8bf1
Stats:     36 lines in 2 files changed: 0 ins; 23 del; 13 mod

8345047: RISC-V: Remove explicit use of AvoidUnalignedAccesses in interpreter

Reviewed-by: mli, fjiang

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

PR: https://git.openjdk.org/jdk/pull/22387


More information about the hotspot-dev mailing list