Integrated: 8295282: Use Zicboz/cbo.zero to zero-out memory on RISC-V

Ludovic Henry luhenry at openjdk.org
Tue Oct 25 20:15:53 UTC 2022


On Sat, 15 Oct 2022 14:23:01 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

> Similarly to AArch64 DC.ZVA, the RISC-V Zicboz [1] extension provides the cbo.zero [2] instruction that allows to zero out memory a cache-line at a time. This should be faster than storing zeroes 64bits at a time.
> 
> [1] https://github.com/riscv/riscv-CMOs
> [2] https://github.com/riscv/riscv-CMOs/blob/master/cmobase/Zicboz.adoc#insns-cbo_zero

This pull request has now been integrated.

Changeset: e0c29307
Author:    Ludovic Henry <luhenry at openjdk.org>
Committer: Vladimir Kempik <vkempik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e0c29307f7b35149aacae0bb935aa9fe524cff72
Stats:     202 lines in 9 files changed: 186 ins; 3 del; 13 mod

8295282: Use Zicboz/cbo.zero to zero-out memory on RISC-V

Reviewed-by: yadongwang, vkempik, fyang

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

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


More information about the hotspot-dev mailing list