RFR: 8309502: RISC-V: String.indexOf intrinsic may produce misaligned memory loads
Vladimir Kempik
vkempik at openjdk.org
Tue Jun 6 15:51:54 UTC 2023
On Tue, 6 Jun 2023 11:41:51 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:
> Looks good, I see some `load_4chr` at [1], could it also produce misaligned loads?
>
> 1. https://github.com/openjdk/jdk/blob/01455a07a7e1f15aed43cd47222047810c826abd/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.cpp#L675-L690
That's hard to say, I just run some tests with perf and check result for trp_lam events. Such analysis is a lot easier.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14320#issuecomment-1579021949
More information about the hotspot-compiler-dev
mailing list