RFR: 8315934: RISC-V: Disable conservative fences per vendor

Fei Yang fyang at openjdk.org
Wed Sep 13 13:32:41 UTC 2023


On Tue, 12 Sep 2023 14:27:40 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

> Conservative fences are not a requirement on some RISC-V hardware for correctness, but can bring a performance penalty. Let's make sure we disable them on a per-vendor basis, and keep them enabled for the default case.

src/hotspot/cpu/riscv/vm_version_riscv.cpp line 102:

> 100:   }
> 101: 
> 102:   // Enable vendor specific features

I guess it's better to have vendor specific settings at the end of this function?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15684#discussion_r1324518216


More information about the hotspot-dev mailing list