RFR: JDK-8253001: [JVMCI] Add API for getting stacktraces independently of current thread
Erik Österlund
eosterlund at openjdk.java.net
Wed Sep 23 20:13:21 UTC 2020
On Wed, 23 Sep 2020 19:54:11 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> java.lang.StackWalker does expose locals as well. What am I missing?
>
> @fisk @coleenp , it appears as though StackWalker can only be used for the current thread. Am I missing some other,
> potentially internal, API that extends StackWalker to allow one thread to walk the stack of another thread?
You are right; the java.lang.StackWalker does not have a thread parameter. If one is needed, I imagine we can add one
(using a handshake). However, I was under the impression that only the debugger case needed this for other remote
threads, in which case JVMTI seems like the natural solution. So yeah, is the non-debug case in need of remote stack
traces with locals?
-------------
PR: https://git.openjdk.java.net/jdk/pull/110
More information about the hotspot-compiler-dev
mailing list