RFR: 8304725: AsyncGetCallTrace can cause SIGBUS on M1 [v3]

Johannes Bechberger jbechberger at openjdk.org
Thu Mar 23 08:50:45 UTC 2023


On Thu, 23 Mar 2023 08:20:18 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

>> Fixes the issue by transitioning the thread into the WXWrite mode while walking the stack in AsyncGetCallTrace.
>> 
>> Tested on my M1 mac.
>
> Johannes Bechberger has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use raw_thread instead of Thread::current()

We could just add a method `is_writable()` at https://github.com/openjdk/jdk/blob/8af25ec09d47900998b8fb58e2e7d486420df03d/src/hotspot/share/runtime/thread.hpp#L629 and call it in PcDesc code.

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

PR Comment: https://git.openjdk.org/jdk/pull/13144#issuecomment-1480797638


More information about the serviceability-dev mailing list