[jdk17u-dev] RFR: 8304725: AsyncGetCallTrace can cause SIGBUS on M1

Sergey Nazarkin snazarki at openjdk.org
Thu Jul 6 10:40:07 UTC 2023


Hi!

I'd like to backport these changes to get around the WX status uncertainty in AsyncGetCallTrace. The function doesn't use ThreadWXEnable like other VM signal handlers, and writing to the CompiledMethod field results in SIGBUS. 

Clean backport. Tested with hostpot tier1 and manually enabled jtreg/serviceability/AsyncGetCallTrace

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

Commit messages:
 - Backport d8af7a6014055295355a1242db6c2872299c6398

Changes: https://git.openjdk.org/jdk17u-dev/pull/1554/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1554&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8304725
  Stats: 33 lines in 3 files changed: 32 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1554.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1554/head:pull/1554

PR: https://git.openjdk.org/jdk17u-dev/pull/1554


More information about the jdk-updates-dev mailing list