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

Thomas Stuefe stuefe at openjdk.org
Fri Mar 24 07:57:32 UTC 2023


On Fri, 24 Mar 2023 07:28:27 GMT, Jaroslav Bachorik <jbachorik at openjdk.org> wrote:

> > Yes, but while JFR interrupts threads too, its sampler runs in its own thread, so the async-safety of the interrupted code should not matter, or?
> 
> And this sampling approach is quite subpar when compared with the signal based profiling - both in terms of bias and precision. Meaning that if/when JFR would implement a state-of-the-art CPU profiler it will have to deal with the same issues we are seeing here.

Not if they run the walker outside the sampled thread. Which would be much safer in a lot of ways.

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

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


More information about the serviceability-dev mailing list