Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295282

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • None
    • b21
    • riscv
    • generic

      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

            luhenry Ludovic Henry
            luhenry Ludovic Henry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: