public final class JavaStackWalker extends Object
StackFrameVisitor to each of the Java frames in a thread stack. It skips native
frames, i.e., it only visits frames where Java frame
information is available.
The stack walking code is allocation free (so that it can be used during garbage collection) and stateless (so that multiple threads can walk their stacks concurrently).
| Modifier and Type | Method and Description |
|---|---|
static boolean |
walkCurrentThread(org.graalvm.word.Pointer startSP,
org.graalvm.nativeimage.c.function.CodePointer startIP,
StackFrameVisitor visitor) |
static boolean |
walkThread(org.graalvm.nativeimage.IsolateThread thread,
StackFrameVisitor visitor) |
public static boolean walkCurrentThread(org.graalvm.word.Pointer startSP,
org.graalvm.nativeimage.c.function.CodePointer startIP,
StackFrameVisitor visitor)
public static boolean walkThread(org.graalvm.nativeimage.IsolateThread thread,
StackFrameVisitor visitor)