Hi, pleaser consider.

On Linux/RISC-V, SA stack walking can loop indefinitely in 
`RISCV64CurrentFrameGuess.run()` when a guessed frame leads to a cyclic sender 
chain. This caused `sun/tools/jhsdb/JStackStressTest.java` to time out.

Reject candidates whose sender stack pointer does not advance, matching the 
existing checks on AArch64 and AMD64.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - RISC-V: Avoid infinite loop in RISCV64CurrentFrameGuess

Changes: https://git.openjdk.org/jdk/pull/33024/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33024&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8392924
  Stats: 10 lines in 1 file changed: 9 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/33024.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33024/head:pull/33024

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

Reply via email to