public class sun.jvm.hotspot.runtime.ThreadStackTrace
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.runtime.ThreadStackTrace
super_class: java.lang.Object
{
private sun.jvm.hotspot.runtime.JavaThread thread;
descriptor: Lsun/jvm/hotspot/runtime/JavaThread;
flags: (0x0002) ACC_PRIVATE
private int depth;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.ArrayList<sun.jvm.hotspot.runtime.StackFrameInfo> frames;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Lsun/jvm/hotspot/runtime/StackFrameInfo;>;
public void <init>(sun.jvm.hotspot.runtime.JavaThread);
descriptor: (Lsun/jvm/hotspot/runtime/JavaThread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
2: aload 0
iconst_0
putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/runtime/ThreadStackTrace;
0 5 1 t Lsun/jvm/hotspot/runtime/JavaThread;
MethodParameters:
Name Flags
t
public int getStackDepth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/runtime/ThreadStackTrace;
public sun.jvm.hotspot.runtime.StackFrameInfo stackFrameAt(int);
descriptor: (I)Lsun/jvm/hotspot/runtime/StackFrameInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast sun.jvm.hotspot.runtime.StackFrameInfo
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/runtime/ThreadStackTrace;
0 1 1 index I
MethodParameters:
Name Flags
index
public void dumpStack(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isJavaThread:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 2
start local 2 3: goto 10
4: StackMap locals: sun.jvm.hotspot.runtime.JavaVFrame
StackMap stack:
new sun.jvm.hotspot.runtime.StackFrameInfo
dup
aload 2
invokespecial sun.jvm.hotspot.runtime.StackFrameInfo.<init>:(Lsun/jvm/hotspot/runtime/JavaVFrame;)V
astore 3
start local 3 5: aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
aload 3
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: aload 0
dup
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
iconst_1
iadd
putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
7: iload 1
ifle 9
aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
iload 1
if_icmpne 9
8: goto 15
end local 3 9: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.javaSender:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 2
StackMap locals:
StackMap stack:
10: aload 2
ifnonnull 4
end local 2 11: goto 15
StackMap locals: sun.jvm.hotspot.runtime.ThreadStackTrace int
StackMap stack: java.lang.Exception
12: astore 2
start local 2 13: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Error occurred during stack walking:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/jvm/hotspot/runtime/ThreadStackTrace;
0 16 1 maxDepth I
3 11 2 vf Lsun/jvm/hotspot/runtime/JavaVFrame;
5 9 3 frame Lsun/jvm/hotspot/runtime/StackFrameInfo;
13 15 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 11 12 Class java.lang.Exception
MethodParameters:
Name Flags
maxDepth
}
SourceFile: "ThreadStackTrace.java"