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

RISC-V: Implement _onSpinWait intrinsic

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • 21
    • b08
    • riscv
    • linux

      Implement _onSpinWait() intrinsic for RISC-V, and it can be implemented by using PAUSE instruction from Zihintpause Extension, which is ratified and a mandatory extension of RVA22U64 (https://github.com/riscv/riscv-profiles/blob/main/profiles.adoc#rva22u64-mandatory-extensions).
      Software can use the PAUSE instruction to reduce energy consumption while executing spinwait
      code sequences (https://github.com/riscv/riscv-isa-manual/blob/master/src/zihintpause.tex).

            yadongwang Yadong Wang
            yadongwang Yadong Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: