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 3
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "dumpStack: not java Thread."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: return
3: 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 4: goto 11
5: 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 6: aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
aload 3
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
7: aload 0
dup
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
iconst_1
iadd
putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
8: iload 1
ifle 10
aload 0
getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
iload 1
if_icmpne 10
9: goto 16
end local 3 10: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.javaSender:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 2
StackMap locals:
StackMap stack:
11: aload 2
ifnonnull 5
end local 2 12: goto 16
StackMap locals: sun.jvm.hotspot.runtime.ThreadStackTrace int
StackMap stack: java.lang.Exception
13: astore 2
start local 2 14: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Error occurred during stack walking:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
end local 2 16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/jvm/hotspot/runtime/ThreadStackTrace;
0 17 1 maxDepth I
4 12 2 vf Lsun/jvm/hotspot/runtime/JavaVFrame;
6 10 3 frame Lsun/jvm/hotspot/runtime/StackFrameInfo;
14 16 2 e Ljava/lang/Exception;
Exception table:
from to target type
3 12 13 Class java.lang.Exception
MethodParameters:
Name Flags
maxDepth
}
SourceFile: "ThreadStackTrace.java"