[riscv-port] RFR: 8281632: riscv: Improve interpreter stack banging [v2]

Yadong Wang yadongwang at openjdk.java.net
Wed Feb 23 06:15:43 UTC 2022


> With reference to https://bugs.openjdk.java.net/browse/JDK-8072070, there is the same issue on the riscv platform.
>  
> 
> Every time we enter a method in interpreter, we bang a lot of stack ahead for shadow zone checks. I believe this could be made significantly better, e.g. by checking how far away we are from the stack_overflow_limit.
> 
> 
> Hotspot/jdk tier1 passed on unmatched, and all jtreg cases were tested on Qemu without new failures.
> 
> Performed the performance regression test in SPECjvm2008 sunflow, and achieved 17% improvement in the interpreter-only mode.

Yadong Wang has updated the pull request incrementally with one additional commit since the last revision:

  missing check for stack growth watermark

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

Changes:
  - all: https://git.openjdk.java.net/riscv-port/pull/58/files
  - new: https://git.openjdk.java.net/riscv-port/pull/58/files/1adab203..91afa11f

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=58&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=58&range=00-01

  Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/riscv-port/pull/58.diff
  Fetch: git fetch https://git.openjdk.java.net/riscv-port pull/58/head:pull/58

PR: https://git.openjdk.java.net/riscv-port/pull/58


More information about the riscv-port-dev mailing list