public static class ThreadStackPrinter.Stage0StackFrameVisitor extends Object implements StackFrameVisitor
Constructor and Description |
---|
Stage0StackFrameVisitor() |
Modifier and Type | Method and Description |
---|---|
protected void |
logFrame(Log log,
org.graalvm.word.Pointer sp,
org.graalvm.nativeimage.c.function.CodePointer ip,
CodeInfo codeInfo,
DeoptimizedFrame deoptFrame) |
protected static void |
logFrameRaw(Log log,
org.graalvm.word.Pointer sp,
org.graalvm.nativeimage.c.function.CodePointer ip) |
boolean |
visitFrame(org.graalvm.word.Pointer sp,
org.graalvm.nativeimage.c.function.CodePointer ip,
CodeInfo codeInfo,
DeoptimizedFrame deoptFrame)
Called for each frame that is visited.
|
public boolean visitFrame(org.graalvm.word.Pointer sp, org.graalvm.nativeimage.c.function.CodePointer ip, CodeInfo codeInfo, DeoptimizedFrame deoptFrame)
StackFrameVisitor
Uninterruptible
or executing within a safepoint, the frame on the stack could be
deoptimized at any safepoint check. Nevertheless, the passed codeInfo remains valid for
accessing information about the code at the (possibly outdated) instruction pointer (this is
ensured by the caller).visitFrame
in interface StackFrameVisitor
sp
- The stack pointer of the frame being visited.ip
- The instruction pointer of the frame being visited.codeInfo
- Information on the code at the IP, for use with CodeInfoAccess
.deoptFrame
- The information about a deoptimized frame, or null
if the
frame is not deoptimized.protected void logFrame(Log log, org.graalvm.word.Pointer sp, org.graalvm.nativeimage.c.function.CodePointer ip, CodeInfo codeInfo, DeoptimizedFrame deoptFrame)
protected static void logFrameRaw(Log log, org.graalvm.word.Pointer sp, org.graalvm.nativeimage.c.function.CodePointer ip)