RFR: 8310949: RISC-V: Initialize UseUnalignedAccesses [v3]
Aleksey Shipilev
shade at openjdk.org
Wed Jun 28 09:03:07 UTC 2023
On Wed, 28 Jun 2023 04:23:59 GMT, Fei Yang <fyang at openjdk.org> wrote:
>> Ludovic Henry has updated the pull request incrementally with one additional commit since the last revision:
>>
>> fixup! 8310949: RISC-V: Initialize UseUnalignedAccesses
>
> We will need some performance numbers to validate this change. We witnessed some obvious regressions of Unsafe.Put*Unaligned methods when enabling UseUnalignedAccesses on some platforms like HiFive Unmatched with slow unaligned accesses. My guess is that we might want enable UseUnalignedAccesses for platforms like T-Head with fast unaligned accesses (RISCV_HWPROBE_MISALIGNED_FAST). But that will still depend on the measured JMH numbers.
>
> PS: JMH test for reference: https://cr.openjdk.org/~dzhang/TestUseUnalignedAccesses/
> > Yes, that would be my suggestion. But @RealFYang's point still stands: we would still need to confirm that actually works well on Unmatched and other known RISC-V boards.
>
> unmatched has misaligned emulator and slow thead c910 core has fast misaligned access but it's stuck on linux 5.10 from vendor which don't have new hw_prober syscall
Is there a board/image that has the hw_prober implemented, and it returns `MISALIGNED_FAST` there?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14676#issuecomment-1611033438
More information about the hotspot-dev
mailing list