public class sun.jvm.hotspot.tools.HeapDumper 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.HeapDumper
super_class: sun.jvm.hotspot.tools.Tool
{
private static java.lang.String DEFAULT_DUMP_FILE;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.String dumpFile;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "heap.bin"
putstatic sun.jvm.hotspot.tools.HeapDumper.DEFAULT_DUMP_FILE:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.<init>:()V
1: aload 0
getstatic sun.jvm.hotspot.tools.HeapDumper.DEFAULT_DUMP_FILE:Ljava/lang/String;
putfield sun.jvm.hotspot.tools.HeapDumper.dumpFile:Ljava/lang/String;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/tools/HeapDumper;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.<init>:()V
1: aload 0
aload 1
putfield sun.jvm.hotspot.tools.HeapDumper.dumpFile:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/tools/HeapDumper;
0 3 1 dumpFile Ljava/lang/String;
MethodParameters:
Name Flags
dumpFile
public void <init>(java.lang.String, sun.jvm.hotspot.debugger.JVMDebugger);
descriptor: (Ljava/lang/String;Lsun/jvm/hotspot/debugger/JVMDebugger;)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
aload 2
invokespecial sun.jvm.hotspot.tools.Tool.<init>:(Lsun/jvm/hotspot/debugger/JVMDebugger;)V
1: aload 0
aload 1
putfield sun.jvm.hotspot.tools.HeapDumper.dumpFile:Ljava/lang/String;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/tools/HeapDumper;
0 3 1 dumpFile Ljava/lang/String;
0 3 2 d Lsun/jvm/hotspot/debugger/JVMDebugger;
MethodParameters:
Name Flags
dumpFile
d
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "heapDumper"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/tools/HeapDumper;
protected void printFlagsUsage();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " <no option>\tto dump heap to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: getstatic sun.jvm.hotspot.tools.HeapDumper.DEFAULT_DUMP_FILE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -f <file>\tto dump heap to <file>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: aload 0
invokespecial sun.jvm.hotspot.tools.Tool.printFlagsUsage:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/tools/HeapDumper;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: 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 0
getfield sun.jvm.hotspot.tools.HeapDumper.dumpFile: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
1: new sun.jvm.hotspot.utilities.HeapHprofBinWriter
dup
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter.<init>:()V
aload 0
getfield sun.jvm.hotspot.tools.HeapDumper.dumpFile:Ljava/lang/String;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.write:(Ljava/lang/String;)V
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Heap dump file created"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: goto 6
StackMap locals:
StackMap stack: java.io.IOException
4: astore 1
start local 1 5: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/tools/HeapDumper;
5 6 1 ioe Ljava/io/IOException;
Exception table:
from to target type
1 3 4 Class java.io.IOException
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.HeapDumper
dup
invokespecial sun.jvm.hotspot.tools.HeapDumper.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual sun.jvm.hotspot.tools.HeapDumper.runWithArgs:([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 dumper Lsun/jvm/hotspot/tools/HeapDumper;
MethodParameters:
Name Flags
args
public void runWithArgs(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
arraylength
iconst_2
if_icmple 6
1: aload 1
iconst_0
aaload
ldc "-f"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
2: aload 0
aload 1
iconst_1
aaload
putfield sun.jvm.hotspot.tools.HeapDumper.dumpFile:Ljava/lang/String;
3: aload 1
arraylength
iconst_2
isub
anewarray java.lang.String
astore 2
start local 2 4: aload 1
iconst_2
aload 2
iconst_0
aload 1
arraylength
iconst_2
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 2
astore 1
end local 2 6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.jvm.hotspot.tools.HeapDumper.execute:([Ljava/lang/String;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/tools/HeapDumper;
0 8 1 args [Ljava/lang/String;
4 6 2 newargs [Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "HeapDumper.java"