public class sun.tools.jmap.JMap
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jmap.JMap
super_class: java.lang.Object
{
private static java.lang.String HISTO_OPTION;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String LIVE_HISTO_OPTION;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String DUMP_OPTION_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String SA_TOOL_OPTIONS;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String FORCE_SA_OPTION;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String DEFAULT_OPTION;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String LIVE_OBJECTS_OPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "-live"
private static final java.lang.String ALL_OBJECTS_OPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "-all"
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/tools/jmap/JMap;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.tools.jmap.JMap.$assertionsDisabled:Z
3: ldc "-histo"
putstatic sun.tools.jmap.JMap.HISTO_OPTION:Ljava/lang/String;
4: ldc "-histo:live"
putstatic sun.tools.jmap.JMap.LIVE_HISTO_OPTION:Ljava/lang/String;
5: ldc "-dump:"
putstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
6: ldc "-heap|-heap:format=b|-permstat|-finalizerinfo"
7: putstatic sun.tools.jmap.JMap.SA_TOOL_OPTIONS:Ljava/lang/String;
8: ldc "-F"
putstatic sun.tools.jmap.JMap.FORCE_SA_OPTION:Ljava/lang/String;
9: ldc "-pmap"
putstatic sun.tools.jmap.JMap.DEFAULT_OPTION:Ljava/lang/String;
10: 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 Lsun/tools/jmap/JMap;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
arraylength
ifne 2
1: invokestatic sun.tools.jmap.JMap.usage:()V
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: aconst_null
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 16
6: StackMap locals: int java.lang.String int
StackMap stack:
aload 0
iload 3
aaload
astore 4
start local 4 7: aload 4
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
8: goto 17
9: StackMap locals: java.lang.String
StackMap stack:
aload 4
getstatic sun.tools.jmap.JMap.FORCE_SA_OPTION:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: iconst_1
istore 1
11: goto 15
12: StackMap locals:
StackMap stack:
aload 2
ifnull 14
13: invokestatic sun.tools.jmap.JMap.usage:()V
14: StackMap locals:
StackMap stack:
aload 4
astore 2
15: StackMap locals:
StackMap stack:
iinc 3 1
end local 4 16: StackMap locals:
StackMap stack:
iload 3
aload 0
arraylength
if_icmplt 6
17: StackMap locals:
StackMap stack:
aload 2
ifnonnull 19
18: getstatic sun.tools.jmap.JMap.DEFAULT_OPTION:Ljava/lang/String;
astore 2
19: StackMap locals:
StackMap stack:
aload 2
getstatic sun.tools.jmap.JMap.SA_TOOL_OPTIONS:Ljava/lang/String;
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 21
20: iconst_1
istore 1
21: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 3
isub
istore 4
start local 4 22: iload 4
ifeq 23
iload 4
iconst_2
if_icmple 24
23: StackMap locals: int
StackMap stack:
invokestatic sun.tools.jmap.JMap.usage:()V
24: StackMap locals:
StackMap stack:
iload 3
ifeq 25
iload 4
iconst_1
if_icmpeq 27
25: StackMap locals:
StackMap stack:
iconst_1
istore 1
26: goto 29
27: StackMap locals:
StackMap stack:
aload 0
iload 3
aaload
ldc "[0-9]+"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifne 29
28: iconst_1
istore 1
29: StackMap locals:
StackMap stack:
iload 1
ifeq 38
30: iload 4
anewarray java.lang.String
astore 5
start local 5 31: iload 3
istore 6
start local 6 32: goto 35
33: StackMap locals: java.lang.String[] int
StackMap stack:
aload 5
iload 6
iload 3
isub
aload 0
iload 6
aaload
aastore
34: iinc 6 1
StackMap locals:
StackMap stack:
35: iload 6
aload 0
arraylength
if_icmplt 33
end local 6 36: aload 2
aload 5
invokestatic sun.tools.jmap.JMap.runTool:(Ljava/lang/String;[Ljava/lang/String;)V
end local 5 37: goto 49
38: StackMap locals:
StackMap stack:
aload 0
iconst_1
aaload
astore 5
start local 5 39: aload 2
getstatic sun.tools.jmap.JMap.HISTO_OPTION:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 42
40: aload 5
iconst_0
invokestatic sun.tools.jmap.JMap.histo:(Ljava/lang/String;Z)V
41: goto 49
StackMap locals: java.lang.String
StackMap stack:
42: aload 2
getstatic sun.tools.jmap.JMap.LIVE_HISTO_OPTION:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 45
43: aload 5
iconst_1
invokestatic sun.tools.jmap.JMap.histo:(Ljava/lang/String;Z)V
44: goto 49
StackMap locals:
StackMap stack:
45: aload 2
getstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 48
46: aload 5
aload 2
invokestatic sun.tools.jmap.JMap.dump:(Ljava/lang/String;Ljava/lang/String;)V
47: goto 49
48: StackMap locals:
StackMap stack:
invokestatic sun.tools.jmap.JMap.usage:()V
end local 5 49: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 args [Ljava/lang/String;
3 50 1 useSA Z
4 50 2 option Ljava/lang/String;
5 50 3 optionCount I
7 16 4 arg Ljava/lang/String;
22 50 4 paramCount I
31 37 5 params [Ljava/lang/String;
32 36 6 i I
39 49 5 pid Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
private static void runTool(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: bipush 6
anewarray java.lang.String[]
dup
iconst_0
1: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-pmap"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.PMap"
aastore
aastore
dup
iconst_1
2: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-heap"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.HeapSummary"
aastore
aastore
dup
iconst_2
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-heap:format=b"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.HeapDumper"
aastore
aastore
dup
iconst_3
4: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-histo"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.ObjectHistogram"
aastore
aastore
dup
iconst_4
5: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-permstat"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.PermStat"
aastore
aastore
dup
iconst_5
6: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-finalizerinfo"
aastore
dup
iconst_1
ldc "sun.jvm.hotspot.tools.FinalizerInfo"
aastore
aastore
7: astore 2
start local 2 8: aconst_null
astore 3
start local 3 9: aload 0
getstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
10: aload 0
invokestatic sun.tools.jmap.JMap.parseDumpOptions:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 11: aload 4
ifnonnull 12
invokestatic sun.tools.jmap.JMap.usage:()V
12: StackMap locals: java.lang.String[][] java.lang.String java.lang.String
StackMap stack:
ldc "sun.jvm.hotspot.tools.HeapDumper"
astore 3
13: aload 4
aload 1
invokestatic sun.tools.jmap.JMap.prepend:(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
astore 1
14: ldc "-f"
aload 1
invokestatic sun.tools.jmap.JMap.prepend:(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
astore 1
end local 4 15: goto 23
16: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 17: goto 22
18: StackMap locals: int
StackMap stack:
aload 0
aload 2
iload 4
aaload
iconst_0
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
19: aload 2
iload 4
aaload
iconst_1
aaload
astore 3
20: goto 23
21: StackMap locals:
StackMap stack:
iinc 4 1
22: StackMap locals:
StackMap stack:
iload 4
aload 2
arraylength
if_icmplt 18
end local 4 23: StackMap locals:
StackMap stack:
aload 3
ifnonnull 25
24: invokestatic sun.tools.jmap.JMap.usage:()V
25: StackMap locals:
StackMap stack:
aload 3
invokestatic sun.tools.jmap.JMap.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 4
start local 4 26: aload 4
ifnonnull 28
27: invokestatic sun.tools.jmap.JMap.usage:()V
28: StackMap locals: java.lang.Class
StackMap stack:
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc [Ljava/lang/String;
aastore
astore 5
start local 5 29: aload 4
ldc "main"
aload 5
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 6
start local 6 30: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
astore 7
start local 7 31: aload 6
aconst_null
aload 7
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
32: return
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 33 0 option Ljava/lang/String;
0 33 1 args [Ljava/lang/String;
8 33 2 tools [[Ljava/lang/String;
9 33 3 tool Ljava/lang/String;
11 15 4 fn Ljava/lang/String;
17 23 4 i I
26 33 4 c Ljava/lang/Class<*>;
29 33 5 argTypes [Ljava/lang/Class;
30 33 6 m Ljava/lang/reflect/Method;
31 33 7 invokeArgs [Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
option
args
private static java.lang.Class<?> loadClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
1: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
2: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 name Ljava/lang/String;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
private static void histo(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.tools.jmap.JMap.attach:(Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
astore 2
start local 2 1: aload 2
checkcast sun.tools.attach.HotSpotVirtualMachine
iconst_1
anewarray java.lang.Object
dup
iconst_0
2: iload 1
ifeq 3
ldc "-live"
goto 4
StackMap locals: java.lang.String int com.sun.tools.attach.VirtualMachine
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.Object[] java.lang.Object[] int
3: ldc "-all"
StackMap locals: java.lang.String int com.sun.tools.attach.VirtualMachine
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.Object[] java.lang.Object[] int java.lang.String
4: aastore
invokevirtual sun.tools.attach.HotSpotVirtualMachine.heapHisto:([Ljava/lang/Object;)Ljava/io/InputStream;
5: astore 3
start local 3 6: aload 2
aload 3
invokestatic sun.tools.jmap.JMap.drain:(Lcom/sun/tools/attach/VirtualMachine;Ljava/io/InputStream;)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 pid Ljava/lang/String;
0 8 1 live Z
1 8 2 vm Lcom/sun/tools/attach/VirtualMachine;
6 8 3 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pid
live
private static void dump(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.tools.jmap.JMap.parseDumpOptions:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: invokestatic sun.tools.jmap.JMap.usage:()V
3: StackMap locals: java.lang.String
StackMap stack:
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
astore 2
4: aload 1
invokestatic sun.tools.jmap.JMap.isDumpLiveObjects:(Ljava/lang/String;)Z
istore 3
start local 3 5: aload 0
invokestatic sun.tools.jmap.JMap.attach:(Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
astore 4
start local 4 6: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Dumping heap to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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
7: aload 4
checkcast sun.tools.attach.HotSpotVirtualMachine
iconst_2
anewarray java.lang.Object
dup
iconst_0
8: aload 2
aastore
dup
iconst_1
9: iload 3
ifeq 10
ldc "-live"
goto 11
StackMap locals: java.lang.String java.lang.String java.lang.String int com.sun.tools.attach.VirtualMachine
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.Object[] java.lang.Object[] int
10: ldc "-all"
StackMap locals: java.lang.String java.lang.String java.lang.String int com.sun.tools.attach.VirtualMachine
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.Object[] java.lang.Object[] int java.lang.String
11: aastore
12: invokevirtual sun.tools.attach.HotSpotVirtualMachine.dumpHeap:([Ljava/lang/Object;)Ljava/io/InputStream;
13: astore 5
start local 5 14: aload 4
aload 5
invokestatic sun.tools.jmap.JMap.drain:(Lcom/sun/tools/attach/VirtualMachine;Ljava/io/InputStream;)V
15: return
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 16 0 pid Ljava/lang/String;
0 16 1 options Ljava/lang/String;
1 16 2 filename Ljava/lang/String;
5 16 3 live Z
6 16 4 vm Lcom/sun/tools/attach/VirtualMachine;
14 16 5 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pid
options
private static java.lang.String parseDumpOptions(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: getstatic sun.tools.jmap.JMap.$assertionsDisabled:Z
ifne 1
aload 0
getstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 2: aload 0
getstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 14
5: StackMap locals: java.lang.String java.lang.String[] int
StackMap stack:
aload 2
iload 3
aaload
astore 4
start local 4 6: aload 4
ldc "format=b"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
7: aload 4
ldc "live"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
8: aload 4
ldc "file="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
9: aload 4
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
10: aload 1
invokevirtual java.lang.String.length:()I
ifne 13
11: aconst_null
areturn
12: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
end local 4 13: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
14: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 15: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 arg Ljava/lang/String;
2 16 1 filename Ljava/lang/String;
3 16 2 options [Ljava/lang/String;
4 15 3 i I
6 13 4 option Ljava/lang/String;
MethodParameters:
Name Flags
arg
private static boolean isDumpLiveObjects(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getstatic sun.tools.jmap.JMap.DUMP_OPTION_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
ldc "live"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 arg Ljava/lang/String;
1 8 1 options [Ljava/lang/String;
3 5 2 suboption Ljava/lang/String;
MethodParameters:
Name Flags
arg
private static com.sun.tools.attach.VirtualMachine attach(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.attach.VirtualMachine.attach:(Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
astore 2
start local 2 4: aload 2
ifnull 7
5: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
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
6: goto 8
7: StackMap locals: java.lang.Exception java.lang.String
StackMap stack:
aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
8: StackMap locals:
StackMap stack:
aload 1
instanceof com.sun.tools.attach.AttachNotSupportedException
ifeq 10
invokestatic sun.tools.jmap.JMap.haveSA:()Z
ifeq 10
9: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "The -F option can be used when the target process is not responding"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.System.exit:(I)V
11: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 pid Ljava/lang/String;
3 12 1 x Ljava/lang/Exception;
4 12 2 msg Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
pid
private static void drain(com.sun.tools.attach.VirtualMachine, java.io.InputStream);
descriptor: (Lcom/sun/tools/attach/VirtualMachine;Ljava/io/InputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: sipush 256
newarray 8
astore 2
start local 2 1: StackMap locals: byte[]
StackMap stack:
aload 1
aload 2
invokevirtual java.io.InputStream.read:([B)I
istore 3
start local 3 2: iload 3
ifle 5
3: new java.lang.String
dup
aload 2
iconst_0
iload 3
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BIILjava/lang/String;)V
astore 4
start local 4 4: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 4
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
end local 4 5: StackMap locals: int
StackMap stack:
iload 3
6: ifgt 1
7: aload 1
invokevirtual java.io.InputStream.close:()V
8: aload 0
invokevirtual com.sun.tools.attach.VirtualMachine.detach:()V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 vm Lcom/sun/tools/attach/VirtualMachine;
0 10 1 in Ljava/io/InputStream;
1 10 2 b [B
2 10 3 n I
4 5 4 s Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
vm
in
private static java.lang.String[] prepend(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
arraylength
iconst_1
iadd
anewarray java.lang.String
astore 2
start local 2 1: aload 2
iconst_0
aload 0
aastore
2: aload 1
iconst_0
aload 2
iconst_1
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 arg Ljava/lang/String;
0 4 1 args [Ljava/lang/String;
1 4 2 newargs [Ljava/lang/String;
MethodParameters:
Name Flags
arg
args
private static boolean haveSA();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: ldc "sun.jvm.hotspot.tools.HeapSummary"
invokestatic sun.tools.jmap.JMap.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
start local 0 1: aload 0
ifnull 2
iconst_1
ireturn
StackMap locals: java.lang.Class
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 c Ljava/lang/Class<*>;
private static void usage();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Usage:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: invokestatic sun.tools.jmap.JMap.haveSA:()Z
ifeq 30
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " jmap [option] <pid>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " (to connect to running process)"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " jmap [option] <executable <core>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " (to connect to a core file)"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " jmap [option] [server_id@]<remote server IP or hostname>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " (to connect to remote debug server)"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "where <option> is one of:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " <none> to print same info as Solaris pmap"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -heap to print java heap summary"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -histo[:live] to print histogram of java object heap; if the \"live\""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " suboption is specified, only count live objects"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -permstat to print permanent generation statistics"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -finalizerinfo to print information on objects awaiting finalization"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -dump:<dump-options> to dump java heap in hprof binary format"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
17: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " dump-options:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " live dump only live objects; if not specified,"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
19: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " all objects in the heap are dumped."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " format=b binary format"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
21: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " file=<file> dump heap to <file>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
22: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " Example: jmap -dump:live,format=b,file=heap.bin <pid>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
23: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -F force. Use with -dump:<dump-options> <pid> or -histo"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " to force a heap dump or histogram when <pid> does not"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
25: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " respond. The \"live\" suboption is not supported"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
26: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " in this mode."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
27: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -h | -help to print this help message"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -J<flag> to pass <flag> directly to the runtime system"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
29: goto 40
30: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " jmap -histo <pid>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
31: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " (to connect to running process and print histogram of java object heap"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
32: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " jmap -dump:<dump-options> <pid>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
33: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " (to connect to running process and dump java heap)"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
34: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
35: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " dump-options:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
36: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " format=b binary default"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
37: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " file=<file> dump heap to <file>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
38: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
39: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " Example: jmap -dump:format=b,file=heap.bin <pid>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
40: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.System.exit:(I)V
41: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "JMap.java"