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

RISC-V: Reduce icache flushes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 24
    • 24
    • hotspot
    • b17
    • riscv

      Today we need to emit tens of thousands of icache_flushes and these are very expensive. By properly using the nmethod barrier and implementing runtime's cmodx fence we can significantly reduce the need for it.
      By emitting fence.i directly and use PR_RISCV_SET_ICACHE_FLUSH_CTX we make sure current hart and if context switch the other hart have a fresh instruction cache:
      https://docs.kernel.org/arch/riscv/cmodx.html

            rehn Robbin Ehn
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: