Alpine Linux would not provide `.eh_frame` enough to unwind in both regular 
binary and debuginfo. We need to refer `.debug_frame` in debuginfo for 
unwinding.

This ticket also re-enable mixed jstack jtreg tests on Alpine if musl-c 
debuginfo is available because `.debug_frame` would be provided by musl-dbg 
package.
This change passed all of serviceability/sa jtreg tests on following 
environment:

- Fedora 44 x86_64
- Alpine Linux 3.23 (with musl-dbg) x86_64
- Rocky Linux 9.5 aarch64

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

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

Commit messages:
 - 8390621: Use .debug_frame if .eh_frame is not enough to unwind

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

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

Reply via email to