public class com.sun.tools.hat.Main
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.hat.Main
super_class: java.lang.Object
{
private static java.lang.String VERSION_STRING;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jhat version 2.0"
putstatic com.sun.tools.hat.Main.VERSION_STRING:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/hat/Main;
private static void usage(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnull 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "ERROR: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
2: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Usage: jhat [-stack <bool>] [-refs <bool>] [-port <port>] [-baseline <file>] [-debug <int>] [-version] [-h|-help] <file>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
4: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-J<flag> Pass <flag> directly to the runtime system. For"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t example, -J-mx512m to use a maximum heap size of 512MB"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-stack false: Turn off tracking object allocation call stack."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-refs false: Turn off tracking of references to objects"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-port <port>: Set the port for the HTTP server. Defaults to 7000"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-exclude <file>: Specify a file that lists data members that should"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t be excluded from the reachableFrom query."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-baseline <file>: Specify a baseline object dump. Objects in"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t both heap dumps with the same ID and same class will"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t be marked as not being \"new\"."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-debug <int>: Set debug level."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t 0: No debug output"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t 1: Debug hprof file parsing"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
17: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t\t\t 2: Debug hprof file parsing, no server"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-version Report version number"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
19: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t-h|-help Print this help and exit"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "\t<file> The file to read"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
21: getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
22: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "For a dump file that contains multiple heap dumps,"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
23: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "you may specify which dump in the file"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "by appending \"#<number>\" to the file name, i.e. \"foo.hprof#3\"."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
25: getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
26: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "All boolean options default to \"true\""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
27: iconst_1
invokestatic java.lang.System.exit:(I)V
28: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 message Ljava/lang/String;
MethodParameters:
Name Flags
message
private static boolean booleanValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "true"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
ldc "false"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
ldc "Boolean value must be true or false"
invokestatic com.sun.tools.hat.Main.usage:(Ljava/lang/String;)V
5: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=13, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmpge 2
1: ldc "No arguments supplied"
invokestatic com.sun.tools.hat.Main.usage:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: sipush 7000
istore 2
start local 2 4: iconst_1
istore 3
start local 3 5: iconst_1
istore 4
start local 4 6: aconst_null
astore 5
start local 5 7: aconst_null
astore 6
start local 6 8: iconst_0
istore 7
start local 7 9: iconst_0
istore 8
start local 8 10: StackMap locals: java.lang.String[] int int int int java.lang.String java.lang.String int int
StackMap stack:
iload 8
aload 0
arraylength
iconst_1
isub
if_icmple 12
11: ldc "Option parsing error"
invokestatic com.sun.tools.hat.Main.usage:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
ldc "-version"
aload 0
iload 8
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic com.sun.tools.hat.Main.VERSION_STRING:Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
14: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " (java version "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
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
15: iconst_0
invokestatic java.lang.System.exit:(I)V
16: StackMap locals:
StackMap stack:
ldc "-h"
aload 0
iload 8
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
ldc "-help"
aload 0
iload 8
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
17: StackMap locals:
StackMap stack:
aconst_null
invokestatic com.sun.tools.hat.Main.usage:(Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
iload 8
aload 0
arraylength
iconst_1
isub
if_icmpne 20
19: goto 43
20: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
astore 9
start local 9 21: aload 0
iload 8
iconst_1
iadd
aaload
astore 10
start local 10 22: ldc "-stack"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
23: aload 10
invokestatic com.sun.tools.hat.Main.booleanValue:(Ljava/lang/String;)Z
istore 3
24: goto 42
StackMap locals: java.lang.String java.lang.String
StackMap stack:
25: ldc "-refs"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 28
26: aload 10
invokestatic com.sun.tools.hat.Main.booleanValue:(Ljava/lang/String;)Z
istore 4
27: goto 42
StackMap locals:
StackMap stack:
28: ldc "-port"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
29: aload 10
bipush 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 2
30: goto 42
StackMap locals:
StackMap stack:
31: ldc "-exclude"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 34
32: aload 10
astore 6
33: goto 42
StackMap locals:
StackMap stack:
34: ldc "-baseline"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 37
35: aload 10
astore 5
36: goto 42
StackMap locals:
StackMap stack:
37: ldc "-debug"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 40
38: aload 10
bipush 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 7
39: goto 42
StackMap locals:
StackMap stack:
40: ldc "-parseonly"
aload 9
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 42
41: aload 10
invokestatic com.sun.tools.hat.Main.booleanValue:(Ljava/lang/String;)Z
istore 1
end local 10 end local 9 42: StackMap locals:
StackMap stack:
iinc 8 2
goto 10
end local 8 43: StackMap locals:
StackMap stack:
aload 0
aload 0
arraylength
iconst_1
isub
aaload
astore 8
start local 8 44: aconst_null
astore 9
start local 9 45: aconst_null
astore 10
start local 10 46: aload 6
ifnull 53
47: new java.io.File
dup
aload 6
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 10
48: aload 10
invokevirtual java.io.File.exists:()Z
ifne 53
49: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Exclude file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
50: ldc " does not exist. Aborting."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
51: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
52: iconst_1
invokestatic java.lang.System.exit:(I)V
53: StackMap locals: java.lang.String com.sun.tools.hat.internal.model.Snapshot java.io.File
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Reading from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "..."
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 8
iload 3
iload 7
invokestatic com.sun.tools.hat.internal.parser.Reader.readFile:(Ljava/lang/String;ZI)Lcom/sun/tools/hat/internal/model/Snapshot;
astore 9
55: goto 63
StackMap locals:
StackMap stack: java.io.IOException
56: astore 11
start local 11 57: aload 11
invokevirtual java.io.IOException.printStackTrace:()V
58: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 11 59: goto 63
60: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 11
start local 11 61: aload 11
invokevirtual java.lang.RuntimeException.printStackTrace:()V
62: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 11 63: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Snapshot read, resolving..."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
64: aload 9
iload 4
invokevirtual com.sun.tools.hat.internal.model.Snapshot.resolve:(Z)V
65: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Snapshot resolved."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
66: aload 10
ifnull 68
67: aload 9
new com.sun.tools.hat.internal.model.ReachableExcludesImpl
dup
aload 10
invokespecial com.sun.tools.hat.internal.model.ReachableExcludesImpl.<init>:(Ljava/io/File;)V
invokevirtual com.sun.tools.hat.internal.model.Snapshot.setReachableExcludes:(Lcom/sun/tools/hat/internal/model/ReachableExcludes;)V
68: StackMap locals:
StackMap stack:
aload 5
ifnull 86
69: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Reading baseline snapshot..."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
70: aconst_null
astore 11
start local 11 71: aload 5
iconst_0
72: iload 7
73: invokestatic com.sun.tools.hat.internal.parser.Reader.readFile:(Ljava/lang/String;ZI)Lcom/sun/tools/hat/internal/model/Snapshot;
astore 11
74: goto 82
StackMap locals: java.lang.String[] int int int int java.lang.String java.lang.String int java.lang.String com.sun.tools.hat.internal.model.Snapshot java.io.File com.sun.tools.hat.internal.model.Snapshot
StackMap stack: java.io.IOException
75: astore 12
start local 12 76: aload 12
invokevirtual java.io.IOException.printStackTrace:()V
77: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 12 78: goto 82
79: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 12
start local 12 80: aload 12
invokevirtual java.lang.RuntimeException.printStackTrace:()V
81: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 12 82: StackMap locals:
StackMap stack:
aload 11
iconst_0
invokevirtual com.sun.tools.hat.internal.model.Snapshot.resolve:(Z)V
83: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Discovering new objects..."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
84: aload 9
aload 11
invokevirtual com.sun.tools.hat.internal.model.Snapshot.markNewRelativeTo:(Lcom/sun/tools/hat/internal/model/Snapshot;)V
85: aconst_null
astore 11
end local 11 86: StackMap locals:
StackMap stack:
iload 7
iconst_2
if_icmpne 89
87: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "No server, -debug 2 was used."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
88: iconst_0
invokestatic java.lang.System.exit:(I)V
89: StackMap locals:
StackMap stack:
iload 1
ifeq 92
90: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "-parseonly is true, exiting.."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
91: iconst_0
invokestatic java.lang.System.exit:(I)V
92: StackMap locals:
StackMap stack:
new com.sun.tools.hat.internal.server.QueryListener
dup
iload 2
invokespecial com.sun.tools.hat.internal.server.QueryListener.<init>:(I)V
astore 11
start local 11 93: aload 11
aload 9
invokevirtual com.sun.tools.hat.internal.server.QueryListener.setModel:(Lcom/sun/tools/hat/internal/model/Snapshot;)V
94: new java.lang.Thread
dup
aload 11
ldc "Query Listener"
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
astore 12
start local 12 95: aload 12
bipush 6
invokevirtual java.lang.Thread.setPriority:(I)V
96: aload 12
invokevirtual java.lang.Thread.start:()V
97: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Started HTTP server on port "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
98: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Server is ready."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
99: return
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 100 0 args [Ljava/lang/String;
3 100 1 parseonly Z
4 100 2 portNumber I
5 100 3 callStack Z
6 100 4 calculateRefs Z
7 100 5 baselineDump Ljava/lang/String;
8 100 6 excludeFileName Ljava/lang/String;
9 100 7 debugLevel I
10 43 8 i I
21 42 9 key Ljava/lang/String;
22 42 10 value Ljava/lang/String;
44 100 8 fileName Ljava/lang/String;
45 100 9 model Lcom/sun/tools/hat/internal/model/Snapshot;
46 100 10 excludeFile Ljava/io/File;
57 59 11 ex Ljava/io/IOException;
61 63 11 ex Ljava/lang/RuntimeException;
71 86 11 baseline Lcom/sun/tools/hat/internal/model/Snapshot;
76 78 12 ex Ljava/io/IOException;
80 82 12 ex Ljava/lang/RuntimeException;
93 100 11 listener Lcom/sun/tools/hat/internal/server/QueryListener;
95 100 12 t Ljava/lang/Thread;
Exception table:
from to target type
54 55 56 Class java.io.IOException
54 55 60 Class java.lang.RuntimeException
71 74 75 Class java.io.IOException
71 74 79 Class java.lang.RuntimeException
MethodParameters:
Name Flags
args
}
SourceFile: "Main.java"