Fixes the issue by transitioning the thread into the WXWrite mode while walking the stack in AsyncGetCallTrace.
Tested on my M1 mac. ------------- Commit messages: - Fix 8304725 Changes: https://git.openjdk.org/jdk/pull/13144/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13144&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8304725 Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/13144.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13144/head:pull/13144 PR: https://git.openjdk.org/jdk/pull/13144