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=11, 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: iconst_0
istore 4
start local 4 10: goto 50
11: StackMap locals: sun.jvm.hotspot.runtime.Threads int
StackMap stack:
aload 3
iload 4
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 5
start local 5 12: aload 5
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isJavaThread:()Z
ifeq 49
13: aload 5
aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.printThreadInfoOn:(Ljava/io/PrintStream;)V
14: iconst_0
istore 6
start local 6 15: aload 5
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 7
start local 7 16: goto 40
17: StackMap locals: sun.jvm.hotspot.runtime.JavaThread int sun.jvm.hotspot.runtime.JavaVFrame
StackMap stack:
aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getMethod:()Lsun/jvm/hotspot/oops/Method;
astore 8
start local 8 18: aload 1
new java.lang.StringBuilder
dup
ldc " - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual sun.jvm.hotspot.oops.Method.externalNameAndSignature:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc " @bci="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
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;
20: invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
21: aload 8
aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.getBCI:()I
invokevirtual sun.jvm.hotspot.oops.Method.getLineNumberFromBCI:(I)I
istore 9
start local 9 22: iload 9
iconst_m1
if_icmpeq 24
23: aload 1
new java.lang.StringBuilder
dup
ldc ", line="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 9
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
24: StackMap locals: sun.jvm.hotspot.oops.Method int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.tools.StackTrace.verbose:Z
ifeq 29
25: aload 7
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 10
start local 10 26: aload 10
ifnull 28
27: aload 1
new java.lang.StringBuilder
dup
ldc ", pc="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
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
28: 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 8
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 10 29: StackMap locals:
StackMap stack:
aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isCompiledFrame:()Z
ifeq 33
30: aload 1
ldc " (Compiled frame"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
31: aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isDeoptimized:()Z
ifeq 33
32: aload 1
ldc " [deoptimized]"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
33: StackMap locals:
StackMap stack:
aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.isInterpretedFrame:()Z
ifeq 35
34: aload 1
ldc " (Interpreted frame"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
35: StackMap locals:
StackMap stack:
aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.mayBeImpreciseDbg:()Z
ifeq 37
36: aload 1
ldc "; information may be imprecise"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
37: StackMap locals:
StackMap stack:
aload 1
ldc ")"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
38: aload 7
aload 1
iload 6
iinc 6 1
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.printLockInfo:(Ljava/io/PrintStream;I)V
end local 9 end local 8 39: aload 7
invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.javaSender:()Lsun/jvm/hotspot/runtime/JavaVFrame;
astore 7
StackMap locals:
StackMap stack:
40: aload 7
ifnonnull 17
end local 7 end local 6 41: goto 45
StackMap locals: sun.jvm.hotspot.tools.StackTrace java.io.PrintStream sun.jvm.hotspot.runtime.ConcurrentLocksPrinter sun.jvm.hotspot.runtime.Threads int sun.jvm.hotspot.runtime.JavaThread
StackMap stack: java.lang.Exception
42: astore 6
start local 6 43: aload 1
ldc "Error occurred during stack walking:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
44: aload 6
invokevirtual java.lang.Exception.printStackTrace:()V
end local 6 45: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.PrintStream.println:()V
46: aload 0
getfield sun.jvm.hotspot.tools.StackTrace.concurrentLocks:Z
ifeq 48
47: aload 2
aload 5
aload 1
invokevirtual sun.jvm.hotspot.runtime.ConcurrentLocksPrinter.print:(Lsun/jvm/hotspot/runtime/JavaThread;Ljava/io/PrintStream;)V
48: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.PrintStream.println:()V
end local 5 49: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
50: iload 4
aload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 11
end local 4 end local 3 end local 2 51: goto 55
52: StackMap locals: sun.jvm.hotspot.tools.StackTrace java.io.PrintStream
StackMap stack: sun.jvm.hotspot.debugger.AddressException
astore 2
start local 2 53: 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
54: aload 2
invokevirtual sun.jvm.hotspot.debugger.AddressException.printStackTrace:()V
end local 2 55: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lsun/jvm/hotspot/tools/StackTrace;
0 56 1 tty Ljava/io/PrintStream;
3 5 2 exp Ljava/lang/Exception;
6 51 2 concLocksPrinter Lsun/jvm/hotspot/runtime/ConcurrentLocksPrinter;
9 51 3 threads Lsun/jvm/hotspot/runtime/Threads;
10 51 4 i I
12 49 5 cur Lsun/jvm/hotspot/runtime/JavaThread;
15 41 6 count I
16 41 7 vf Lsun/jvm/hotspot/runtime/JavaVFrame;
18 39 8 method Lsun/jvm/hotspot/oops/Method;
22 39 9 lineNumber I
26 29 10 pc Lsun/jvm/hotspot/debugger/Address;
43 45 6 e Ljava/lang/Exception;
53 55 2 e Lsun/jvm/hotspot/debugger/AddressException;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
14 41 42 Class java.lang.Exception
5 51 52 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"