RFR: 8315841: RISC-V: Check for hardware TSO support
Vladimir Kempik
vkempik at openjdk.org
Thu Sep 7 11:30:39 UTC 2023
On Thu, 7 Sep 2023 09:00:50 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:
> With the Ztso extension [1], some hardware will support TSO on RISC-V. That allows us to reduce the generation of memory fences, given the stronger memory model compared to RVWMO.
>
> [1] https://github.com/riscv/riscv-isa-manual/blob/6dcbc6da9ada01f0f57da83cda6059bdec57619f/src/ztso-st-ext.adoc#L1
IIRC, the TSO elf files will have special bit set in elf header.
So we would have to build whole java for TSO mode, then UseZtso could be a static compile-time option
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15613#issuecomment-1709982309
More information about the hotspot-dev
mailing list