Make sure when walking the stack that the "sender" frame is not at a lower or 
the same address as the current frame, which can result in an infinite loop.

Tested with tier1 and stress testing sun/tools/jhsdb and 
hotspot/jtreg/serviceability/sa tests.

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

Commit messages:
 - Detect bad stackwalking in VFrame.javaSender()

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

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

Reply via email to