RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method

Chris Plummer cjplummer at openjdk.java.net
Tue Mar 9 05:01:08 UTC 2021


On Wed, 3 Mar 2021 22:37:32 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> Marked as reviewed by lmesnik (Committer).
>
>> Doesn't jstack force all threads to be walkable via a safepoint or
>> handshake?
> 
> Nope. If it did it couldn't debug core files or a hung process. That's why SA has so much code to safe guard against walking off the deep end when doing things like stack walking and heap scanning.
> 
> BTW, you might be thinking of the Attach API version of `jstack`, which does safepoint. These tests all involve the SA version of `jstack`.

Ping! I could use one more reviewer. Thanks!

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

PR: https://git.openjdk.java.net/jdk/pull/2700


More information about the serviceability-dev mailing list