public class sun.jvm.hotspot.tools.StackTrace extends sun.jvm.hotspot.tools.Tool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.tools.StackTrace
super_class: sun.jvm.hotspot.tools.Tool
{
private boolean verbose;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean concurrentLocks;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.<init>:()V
1: aload 0
iload 1
putfield sun.jvm.hotspot.tools.StackTrace.verbose:Z
2: aload 0
iload 2
putfield sun.jvm.hotspot.tools.StackTrace.concurrentLocks:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/tools/StackTrace;
0 4 1 v Z
0 4 2 concurrentLocks Z
MethodParameters:
Name Flags
v
concurrentLocks
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
iconst_1
invokespecial sun.jvm.hotspot.tools.StackTrace.<init>:(ZZ)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/StackTrace;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual sun.jvm.hotspot.tools.StackTrace.run:(Ljava/io/PrintStream;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/StackTrace;
public void <init>(sun.jvm.hotspot.debugger.JVMDebugger);
descriptor: (Lsun/jvm/hotspot/debugger/JVMDebugger;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.jvm.hotspot.tools.Tool.<init>:(Lsun/jvm/hotspot/debugger/JVMDebugger;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/tools/StackTrace;
0 2 1 d Lsun/jvm/hotspot/debugger/JVMDebugger;
MethodParameters:
Name Flags
d
public void <init>(sun.jvm.hotspot.debugger.JVMDebugger, boolean, boolean);
descriptor: (Lsun/jvm/hotspot/debugger/JVMDebugger;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial sun.jvm.hotspot.tools.Tool.<init>:(Lsun/jvm/hotspot/debugger/JVMDebugger;)V
1: aload 0
iload 2
putfield sun.jvm.hotspot.tools.StackTrace.verbose:Z
2: aload 0
iload 3
putfield sun.jvm.hotspot.tools.StackTrace.concurrentLocks:Z
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/tools/StackTrace;
0 4 1 d Lsun/jvm/hotspot/debugger/JVMDebugger;
0 4 2 v Z
0 4 3 concurrentLocks Z
MethodParameters:
Name Flags
d
v
concurrentLocks
public void run(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.jvm.hotspot.runtime.DeadlockDetector.print:(Ljava/io/PrintStream;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 2
start local 2 3: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
4: aload 1
new java.lang.StringBuilder
dup
ldc "Can't print deadlocks:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 2 5: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 6: aload 0
getfield sun.jvm.hotspot.tools.StackTrace.concurrentLocks:Z
ifeq 8
7: new sun.jvm.hotspot.runtime.ConcurrentLocksPrinter
dup
invokespecial sun.jvm.hotspot.runtime.ConcurrentLocksPrinter.<init>:()V
astore 2
8: StackMap locals: sun.jvm.hotspot.runtime.ConcurrentLocksPrinter
StackMap stack:
invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getThreads:()Lsun/jvm/hotspot/runtime/Threads;
astore 3
start local 3 9: aload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.first:()Lsun/jvm/hotspot/runtime/JavaThread;
astore 4
start local 4 10: goto 49
11: StackMap locals: sun.jvm.hotspot.runtime.Threads sun.jvm.hotspot.runtime.JavaThread
StackMap stack:
aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isJavaThread:()Z
ifeq 48
12: aload 4
aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.printThreadInfoOn:(Ljava/io/PrintStream;)V
13: iconst_0
istore 5
start local 5 14: aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 6
start local 6 15: goto 39
16: StackMap locals: int sun.jvm.hotspot.runtime.JavaVFrame
StackMap stack:
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getMethod:()Lsun/jvm/hotspot/oops/Method;
astore 7
start local 7 17: aload 1
new java.lang.StringBuilder
dup
ldc " - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual sun.jvm.hotspot.oops.Method.externalNameAndSignature:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc " @bci="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getBCI:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
20: aload 7
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getBCI:()I
invokevirtual sun.jvm.hotspot.oops.Method.getLineNumberFromBCI:(I)I
istore 8
start local 8 21: iload 8
iconst_m1
if_icmpeq 23
22: aload 1
new java.lang.StringBuilder
dup
ldc ", line="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
23: StackMap locals: sun.jvm.hotspot.oops.Method int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.tools.StackTrace.verbose:Z
ifeq 28
24: aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getFrame:()Lsun/jvm/hotspot/runtime/Frame;
invokevirtual sun.jvm.hotspot.runtime.Frame.getPC:()Lsun/jvm/hotspot/debugger/Address;
astore 9
start local 9 25: aload 9
ifnull 27
26: aload 1
new java.lang.StringBuilder
dup
ldc ", pc="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
27: StackMap locals: sun.jvm.hotspot.debugger.Address
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc ", Method*="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual sun.jvm.hotspot.oops.Method.getAddress:()Lsun/jvm/hotspot/debugger/Address;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
end local 9 28: StackMap locals:
StackMap stack:
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isCompiledFrame:()Z
ifeq 32
29: aload 1
ldc " (Compiled frame"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
30: aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isDeoptimized:()Z
ifeq 32
31: aload 1
ldc " [deoptimized]"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
32: StackMap locals:
StackMap stack:
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isInterpretedFrame:()Z
ifeq 34
33: aload 1
ldc " (Interpreted frame"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
34: StackMap locals:
StackMap stack:
aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.mayBeImpreciseDbg:()Z
ifeq 36
35: aload 1
ldc "; information may be imprecise"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
36: StackMap locals:
StackMap stack:
aload 1
ldc ")"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
37: aload 6
aload 1
iload 5
iinc 5 1
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.printLockInfo:(Ljava/io/PrintStream;I)V
end local 8 end local 7 38: aload 6
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.javaSender:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 6
StackMap locals:
StackMap stack:
39: aload 6
ifnonnull 16
end local 6 end local 5 40: goto 44
StackMap locals: sun.jvm.hotspot.tools.StackTrace java.io.PrintStream sun.jvm.hotspot.runtime.ConcurrentLocksPrinter sun.jvm.hotspot.runtime.Threads sun.jvm.hotspot.runtime.JavaThread
StackMap stack: java.lang.Exception
41: astore 5
start local 5 42: aload 1
ldc "Error occurred during stack walking:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: aload 5
invokevirtual java.lang.Exception.printStackTrace:()V
end local 5 44: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.PrintStream.println:()V
45: aload 0
getfield sun.jvm.hotspot.tools.StackTrace.concurrentLocks:Z
ifeq 47
46: aload 2
aload 4
aload 1
invokevirtual sun.jvm.hotspot.runtime.ConcurrentLocksPrinter.print:(Lsun/jvm/hotspot/runtime/JavaThread;Ljava/io/PrintStream;)V
47: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.PrintStream.println:()V
48: StackMap locals:
StackMap stack:
aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.next:()Lsun/jvm/hotspot/runtime/JavaThread;
astore 4
StackMap locals:
StackMap stack:
49: aload 4
ifnonnull 11
end local 4 end local 3 end local 2 50: goto 54
51: StackMap locals: sun.jvm.hotspot.tools.StackTrace java.io.PrintStream
StackMap stack: sun.jvm.hotspot.debugger.AddressException
astore 2
start local 2 52: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Error accessing address 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual sun.jvm.hotspot.debugger.AddressException.getAddress:()J
invokestatic java.lang.Long.toHexString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
53: aload 2
invokevirtual sun.jvm.hotspot.debugger.AddressException.printStackTrace:()V
end local 2 54: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 55 0 this Lsun/jvm/hotspot/tools/StackTrace;
0 55 1 tty Ljava/io/PrintStream;
3 5 2 exp Ljava/lang/Exception;
6 50 2 concLocksPrinter Lsun/jvm/hotspot/runtime/ConcurrentLocksPrinter;
9 50 3 threads Lsun/jvm/hotspot/runtime/Threads;
10 50 4 cur Lsun/jvm/hotspot/runtime/JavaThread;
14 40 5 count I
15 40 6 vf Lsun/jvm/hotspot/runtime/JavaVFrame;
17 38 7 method Lsun/jvm/hotspot/oops/Method;
21 38 8 lineNumber I
25 28 9 pc Lsun/jvm/hotspot/debugger/Address;
42 44 5 e Ljava/lang/Exception;
52 54 2 e Lsun/jvm/hotspot/debugger/AddressException;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
13 40 41 Class java.lang.Exception
5 50 51 Class sun.jvm.hotspot.debugger.AddressException
MethodParameters:
Name Flags
tty
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new sun.jvm.hotspot.tools.StackTrace
dup
invokespecial sun.jvm.hotspot.tools.StackTrace.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual sun.jvm.hotspot.tools.StackTrace.execute:([Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 args [Ljava/lang/String;
1 3 1 st Lsun/jvm/hotspot/tools/StackTrace;
MethodParameters:
Name Flags
args
}
SourceFile: "StackTrace.java"