public class sun.jvm.hotspot.utilities.HeapHprofBinWriter extends sun.jvm.hotspot.utilities.AbstractHeapGraphWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.utilities.HeapHprofBinWriter
super_class: sun.jvm.hotspot.utilities.AbstractHeapGraphWriter
{
private java.util.HashSet<sun.jvm.hotspot.oops.Symbol> names;
descriptor: Ljava/util/HashSet;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashSet<Lsun/jvm/hotspot/oops/Symbol;>;
private static final long HPROF_SEGMENTED_HEAP_DUMP_THRESHOLD;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2147483648
private static final long HPROF_SEGMENTED_HEAP_DUMP_SEGMENT_SIZE;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1073741824
private static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "JAVA PROFILE 1.0.2"
private static final int HPROF_UTF8;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int HPROF_LOAD_CLASS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int HPROF_UNLOAD_CLASS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int HPROF_FRAME;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int HPROF_TRACE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int HPROF_ALLOC_SITES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private static final int HPROF_HEAP_SUMMARY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private static final int HPROF_START_THREAD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final int HPROF_END_THREAD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final int HPROF_HEAP_DUMP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12
private static final int HPROF_CPU_SAMPLES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 13
private static final int HPROF_CONTROL_SETTINGS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 14
private static final int HPROF_HEAP_DUMP_SEGMENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 28
private static final int HPROF_HEAP_DUMP_END;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 44
private static final int HPROF_GC_ROOT_UNKNOWN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 255
private static final int HPROF_GC_ROOT_JNI_GLOBAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int HPROF_GC_ROOT_JNI_LOCAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int HPROF_GC_ROOT_JAVA_FRAME;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int HPROF_GC_ROOT_NATIVE_STACK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int HPROF_GC_ROOT_STICKY_CLASS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int HPROF_GC_ROOT_THREAD_BLOCK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private static final int HPROF_GC_ROOT_MONITOR_USED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private static final int HPROF_GC_ROOT_THREAD_OBJ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int HPROF_GC_CLASS_DUMP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final int HPROF_GC_INSTANCE_DUMP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 33
private static final int HPROF_GC_OBJ_ARRAY_DUMP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 34
private static final int HPROF_GC_PRIM_ARRAY_DUMP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 35
private static final int HPROF_ARRAY_OBJECT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int HPROF_NORMAL_OBJECT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int HPROF_BOOLEAN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int HPROF_CHAR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int HPROF_FLOAT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private static final int HPROF_DOUBLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private static final int HPROF_BYTE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int HPROF_SHORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 9
private static final int HPROF_INT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final int HPROF_LONG;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final int JVM_SIGNATURE_BOOLEAN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 90
private static final int JVM_SIGNATURE_CHAR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 67
private static final int JVM_SIGNATURE_BYTE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 66
private static final int JVM_SIGNATURE_SHORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 83
private static final int JVM_SIGNATURE_INT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 73
private static final int JVM_SIGNATURE_LONG;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 74
private static final int JVM_SIGNATURE_FLOAT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 70
private static final int JVM_SIGNATURE_DOUBLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 68
private static final int JVM_SIGNATURE_ARRAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 91
private static final int JVM_SIGNATURE_CLASS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 76
private static final long MAX_U4_VALUE;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4294967295
int serialNum;
descriptor: I
flags: (0x0000)
private static final int DUMMY_STACK_TRACE_ID;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int EMPTY_FRAME_DEPTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private java.io.DataOutputStream out;
descriptor: Ljava/io/DataOutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.FileOutputStream fos;
descriptor: Ljava/io/FileOutputStream;
flags: (0x0002) ACC_PRIVATE
private sun.jvm.hotspot.debugger.Debugger dbg;
descriptor: Lsun/jvm/hotspot/debugger/Debugger;
flags: (0x0002) ACC_PRIVATE
private sun.jvm.hotspot.oops.ObjectHeap objectHeap;
descriptor: Lsun/jvm/hotspot/oops/ObjectHeap;
flags: (0x0002) ACC_PRIVATE
private java.util.ArrayList<sun.jvm.hotspot.oops.Klass> KlassMap;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Lsun/jvm/hotspot/oops/Klass;>;
private int OBJ_ID_SIZE;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean useSegmentedHeapDump;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private long currentSegmentStart;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long BOOLEAN_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long BYTE_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long CHAR_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long SHORT_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long INT_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long LONG_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long FLOAT_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long DOUBLE_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long OBJECT_BASE_OFFSET;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long BOOLEAN_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long BYTE_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long CHAR_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long SHORT_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long INT_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long LONG_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long FLOAT_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long DOUBLE_SIZE;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.util.Map<sun.jvm.hotspot.oops.InstanceKlass, sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData> classDataCache;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Lsun/jvm/hotspot/oops/InstanceKlass;Lsun/jvm/hotspot/utilities/HeapHprofBinWriter$ClassData;>;
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/jvm/hotspot/utilities/HeapHprofBinWriter;
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.jvm.hotspot.utilities.HeapHprofBinWriter.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.<init>:()V
1: aload 0
iconst_1
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.serialNum:I
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.classDataCache:Ljava/util/Map;
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.KlassMap:Ljava/util/ArrayList;
4: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.names:Ljava/util/HashSet;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
public synchronized void write(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
astore 2
start local 2 1: aload 0
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
2: aload 0
new java.io.DataOutputStream
dup
new java.io.BufferedOutputStream
dup
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
3: aload 0
aload 2
invokevirtual sun.jvm.hotspot.runtime.VM.getDebugger:()Lsun/jvm/hotspot/debugger/JVMDebugger;
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.dbg:Lsun/jvm/hotspot/debugger/Debugger;
4: aload 0
aload 2
invokevirtual sun.jvm.hotspot.runtime.VM.getObjectHeap:()Lsun/jvm/hotspot/oops/ObjectHeap;
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
5: aload 0
aload 2
invokevirtual sun.jvm.hotspot.runtime.VM.getOopSize:()J
l2i
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
6: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_BOOLEAN:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BOOLEAN_BASE_OFFSET:J
7: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_BYTE:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_BASE_OFFSET:J
8: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_CHAR:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.CHAR_BASE_OFFSET:J
9: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_SHORT:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.SHORT_BASE_OFFSET:J
10: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_INT:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_BASE_OFFSET:J
11: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_LONG:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.LONG_BASE_OFFSET:J
12: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_FLOAT:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.FLOAT_BASE_OFFSET:J
13: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_DOUBLE:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.DOUBLE_BASE_OFFSET:J
14: aload 0
getstatic sun.jvm.hotspot.runtime.BasicType.T_OBJECT:Lsun/jvm/hotspot/runtime/BasicType;
invokestatic sun.jvm.hotspot.oops.TypeArray.baseOffsetInBytes:(Lsun/jvm/hotspot/runtime/BasicType;)J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJECT_BASE_OFFSET:J
15: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getBooleanSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BOOLEAN_SIZE:J
16: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getByteSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_SIZE:J
17: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getCharSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.CHAR_SIZE:J
18: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getShortSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.SHORT_SIZE:J
19: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getIntSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
20: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getLongSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.LONG_SIZE:J
21: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getFloatSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.FLOAT_SIZE:J
22: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getDoubleSize:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.DOUBLE_SIZE:J
23: aload 0
aload 2
invokevirtual sun.jvm.hotspot.runtime.VM.getUniverse:()Lsun/jvm/hotspot/memory/Universe;
invokevirtual sun.jvm.hotspot.memory.Universe.heap:()Lsun/jvm/hotspot/gc/shared/CollectedHeap;
invokevirtual sun.jvm.hotspot.gc.shared.CollectedHeap.used:()J
ldc 2147483648
lcmp
ifle 24
iconst_1
goto 25
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter java.lang.String sun.jvm.hotspot.runtime.VM
StackMap stack: sun.jvm.hotspot.utilities.HeapHprofBinWriter
24: iconst_0
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter java.lang.String sun.jvm.hotspot.runtime.VM
StackMap stack: sun.jvm.hotspot.utilities.HeapHprofBinWriter int
25: putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.useSegmentedHeapDump:Z
26: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFileHeader:()V
27: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeDummyTrace:()V
28: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbols:()V
29: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClasses:()V
30: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackTraces:()V
31: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassDumpRecords:()V
32: aload 0
invokespecial sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.write:()V
33: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
invokevirtual java.io.DataOutputStream.flush:()V
34: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.fillInHeapRecordLength:()V
35: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.useSegmentedHeapDump:Z
ifeq 39
36: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 44
invokevirtual java.io.DataOutputStream.writeByte:(I)V
37: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
38: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
39: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
invokevirtual java.io.DataOutputStream.flush:()V
40: aload 0
aconst_null
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
41: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.close:()V
42: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 43 1 fileName Ljava/lang/String;
1 43 2 vm Lsun/jvm/hotspot/runtime/VM;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fileName
protected void writeHeapRecordPrologue();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
lconst_0
lcmp
ifne 9
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.useSegmentedHeapDump:Z
ifeq 2
bipush 28
goto 3
2: StackMap locals:
StackMap stack: java.io.DataOutputStream
bipush 12
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter
StackMap stack: java.io.DataOutputStream int
3: i2b
4: invokevirtual java.io.DataOutputStream.writeByte:(I)V
5: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
6: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
invokevirtual java.io.DataOutputStream.flush:()V
7: aload 0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.position:()J
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
8: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
Exceptions:
throws java.io.IOException
protected void writeHeapRecordEpilogue();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.useSegmentedHeapDump:Z
ifeq 5
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
invokevirtual java.io.DataOutputStream.flush:()V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.position:()J
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
lsub
ldc 4
lsub
ldc 1073741824
lcmp
iflt 5
3: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.fillInHeapRecordLength:()V
4: aload 0
lconst_0
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
Exceptions:
throws java.io.IOException
private void fillInHeapRecordLength();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.position:()J
lstore 1
start local 1 1: lload 1
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
lsub
ldc 4
lsub
lstore 3
start local 3 2: lload 3
ldc 4294967296
lcmp
iflt 4
3: new java.lang.RuntimeException
dup
ldc "Heap segment size overflow."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: long long
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.position:()J
lstore 5
start local 5 5: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
invokevirtual java.nio.channels.FileChannel.position:(J)Ljava/nio/channels/FileChannel;
pop
6: lload 3
l2i
istore 7
start local 7 7: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
iload 7
bipush 24
iushr
sipush 255
iand
invokevirtual java.io.FileOutputStream.write:(I)V
8: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
iload 7
bipush 16
iushr
sipush 255
iand
invokevirtual java.io.FileOutputStream.write:(I)V
9: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
iload 7
bipush 8
iushr
sipush 255
iand
invokevirtual java.io.FileOutputStream.write:(I)V
10: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
iload 7
iconst_0
iushr
sipush 255
iand
invokevirtual java.io.FileOutputStream.write:(I)V
11: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
lload 5
invokevirtual java.nio.channels.FileChannel.position:(J)Ljava/nio/channels/FileChannel;
pop
12: return
end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
1 13 1 dumpEnd J
2 13 3 dumpLenLong J
5 13 5 currentPosition J
7 13 7 dumpLen I
Exceptions:
throws java.io.IOException
private long getSizeForType(int);
descriptor: (I)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
tableswitch { // 4 - 11
4: 1
5: 3
6: 7
7: 8
8: 5
9: 4
10: 2
11: 6
default: 9
}
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BOOLEAN_SIZE:J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
lreturn
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.CHAR_SIZE:J
lreturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.SHORT_SIZE:J
lreturn
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_SIZE:J
lreturn
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.LONG_SIZE:J
lreturn
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.FLOAT_SIZE:J
lreturn
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.DOUBLE_SIZE:J
lreturn
9: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
10: new java.lang.StringBuilder
dup
ldc "Should not reach here: Unknown type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 12 1 type I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
type
private int (boolean);
descriptor: (Z)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_SIZE:J
l2i
iconst_2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
l2i
imul
iadd
iconst_2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
imul
iadd
goto 3
2: StackMap locals:
StackMap stack:
iconst_2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_SIZE:J
l2i
imul
iconst_2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
l2i
imul
iadd
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
iadd
3: StackMap locals:
StackMap stack: int
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 4 1 isObjectAarray Z
MethodParameters:
Name Flags
isObjectAarray
private int calculateArrayMaxLength(long, int, long, java.lang.String);
descriptor: (JIJLjava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=17, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 6 0: lload 1
lstore 7
start local 7 1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.fos:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.position:()J
lstore 9
start local 9 2: lload 1
lload 4
lmul
lstore 11
start local 11 3: lload 9
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
lsub
ldc 4
lsub
lstore 13
start local 13 4: lload 13
lconst_0
lcmp
ifle 10
5: lload 13
iload 3
i2l
ladd
lload 11
ladd
ldc 4294967295
lcmp
ifle 10
6: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.fillInHeapRecordLength:()V
7: aload 0
lconst_0
putfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.currentSegmentStart:J
8: aload 0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeapRecordPrologue:()V
9: lconst_0
lstore 13
10: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter long int long java.lang.String long long long long
StackMap stack:
ldc 4294967295
iload 3
i2l
lload 13
ladd
lsub
lstore 15
start local 15 11: lload 11
lload 15
lcmp
ifle 17
12: lload 15
lload 4
ldiv
lstore 7
13: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "WARNING: Cannot dump array of type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: ldc " with length "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
15: ldc "; truncating to length "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 7
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
17: StackMap locals: long
StackMap stack:
lload 7
l2i
ireturn
end local 15 end local 13 end local 11 end local 9 end local 7 end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 18 1 originalArrayLength J
0 18 3 headerSize I
0 18 4 typeSize J
0 18 6 typeName Ljava/lang/String;
1 18 7 length J
2 18 9 dumpEnd J
3 18 11 originalLengthInBytes J
4 18 13 currentRecordLength J
11 18 15 maxBytes J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
originalArrayLength
headerSize
typeSize
typeName
private void writeClassDumpRecords();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getClassLoaderDataGraph:()Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
astore 1
start local 1 1: aload 1
new sun.jvm.hotspot.utilities.HeapHprofBinWriter$1
dup
aload 0
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter$1.<init>:(Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;)V
invokevirtual sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo:(Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph$ClassVisitor;)V
2: goto 5
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.classfile.ClassLoaderDataGraph
StackMap stack: java.lang.RuntimeException
3: astore 2
start local 2 4: aload 0
aload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.handleRuntimeException:(Ljava/lang/RuntimeException;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
1 6 1 cldGraph Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
4 5 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
1 2 3 Class java.lang.RuntimeException
Exceptions:
throws java.io.IOException
protected void writeClass(sun.jvm.hotspot.oops.Instance);
descriptor: (Lsun/jvm/hotspot/oops/Instance;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.jvm.hotspot.oops.java_lang_Class.asKlass:(Lsun/jvm/hotspot/oops/Oop;)Lsun/jvm/hotspot/oops/Klass;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeInstance:(Lsun/jvm/hotspot/oops/Instance;)V
3: StackMap locals: sun.jvm.hotspot.oops.Klass
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 4 1 instance Lsun/jvm/hotspot/oops/Instance;
1 4 2 reflectedKlass Lsun/jvm/hotspot/oops/Klass;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
instance
private void writeClassDumpRecord(sun.jvm.hotspot.oops.Klass);
descriptor: (Lsun/jvm/hotspot/oops/Klass;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 32
invokevirtual java.io.DataOutputStream.writeByte:(I)V
1: aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.Klass.getJavaMirror:()Lsun/jvm/hotspot/oops/Instance;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 1
invokevirtual sun.jvm.hotspot.oops.Klass.getJavaSuper:()Lsun/jvm/hotspot/oops/Klass;
astore 2
start local 2 4: aload 2
ifnull 7
5: aload 0
aload 2
invokevirtual sun.jvm.hotspot.oops.Klass.getJavaMirror:()Lsun/jvm/hotspot/oops/Instance;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
6: goto 8
7: StackMap locals: sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
8: StackMap locals:
StackMap stack:
aload 1
instanceof sun.jvm.hotspot.oops.InstanceKlass
ifeq 34
9: aload 1
checkcast sun.jvm.hotspot.oops.InstanceKlass
astore 3
start local 3 10: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getClassLoader:()Lsun/jvm/hotspot/oops/Oop;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
11: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
12: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
13: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
14: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
15: aload 3
invokestatic sun.jvm.hotspot.utilities.HeapHprofBinWriter.getInstanceFields:(Lsun/jvm/hotspot/oops/InstanceKlass;)Ljava/util/List;
astore 4
start local 4 16: aload 0
aload 4
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getSizeForFields:(Ljava/util/List;)I
istore 5
start local 5 17: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.classDataCache:Ljava/util/Map;
aload 3
new sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData
dup
iload 5
aload 4
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData.<init>:(ILjava/util/List;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 5
invokevirtual java.io.DataOutputStream.writeInt:(I)V
19: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeShort:(I)V
20: aload 3
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields:()Ljava/util/List;
astore 6
start local 6 21: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 22: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 8
start local 8 23: aconst_null
astore 9
start local 9 24: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 30
25: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.oops.Klass sun.jvm.hotspot.oops.Klass sun.jvm.hotspot.oops.InstanceKlass java.util.List int java.util.List java.util.List java.util.List java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
astore 10
start local 10 26: aload 10
invokevirtual sun.jvm.hotspot.oops.Field.isStatic:()Z
ifeq 29
27: aload 7
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
28: goto 30
29: StackMap locals: sun.jvm.hotspot.oops.Field
StackMap stack:
aload 8
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 30: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
31: aload 0
aload 7
aload 3
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFieldDescriptors:(Ljava/util/List;Lsun/jvm/hotspot/oops/InstanceKlass;)V
32: aload 0
aload 8
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFieldDescriptors:(Ljava/util/List;Lsun/jvm/hotspot/oops/InstanceKlass;)V
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 33: goto 56
34: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.oops.Klass sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 1
instanceof sun.jvm.hotspot.oops.ObjArrayKlass
ifeq 47
35: aload 1
checkcast sun.jvm.hotspot.oops.ObjArrayKlass
astore 3
start local 3 36: aload 3
invokevirtual sun.jvm.hotspot.oops.ObjArrayKlass.getBottomKlass:()Lsun/jvm/hotspot/oops/Klass;
astore 4
start local 4 37: aload 4
instanceof sun.jvm.hotspot.oops.InstanceKlass
ifeq 43
38: aload 4
checkcast sun.jvm.hotspot.oops.InstanceKlass
astore 5
start local 5 39: aload 0
aload 5
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getClassLoader:()Lsun/jvm/hotspot/oops/Oop;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
40: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
41: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
end local 5 42: goto 50
43: StackMap locals: sun.jvm.hotspot.oops.ObjArrayKlass sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
44: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
45: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
end local 4 end local 3 46: goto 50
47: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
48: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
49: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
50: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
51: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
52: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
53: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeShort:(I)V
54: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeShort:(I)V
55: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeShort:(I)V
56: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 57 1 k Lsun/jvm/hotspot/oops/Klass;
4 57 2 superKlass Lsun/jvm/hotspot/oops/Klass;
10 33 3 ik Lsun/jvm/hotspot/oops/InstanceKlass;
16 33 4 fields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
17 33 5 instSize I
21 33 6 declaredFields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
22 33 7 staticFields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
23 33 8 instanceFields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
24 33 9 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
26 30 10 field Lsun/jvm/hotspot/oops/Field;
36 46 3 oak Lsun/jvm/hotspot/oops/ObjArrayKlass;
37 46 4 bottomKlass Lsun/jvm/hotspot/oops/Klass;
39 42 5 ik Lsun/jvm/hotspot/oops/InstanceKlass;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
k
private void dumpStackTraces();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=14, args_size=1
start local 0 0: aload 0
iconst_5
iconst_3
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
l2i
imul
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
4: iconst_0
istore 1
start local 1 5: iconst_0
istore 2
start local 2 6: 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 7: iconst_0
istore 4
start local 4 8: goto 37
9: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter int int 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 10: aload 5
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getThreadObj:()Lsun/jvm/hotspot/oops/Oop;
astore 6
start local 6 11: aload 6
ifnull 36
aload 5
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isExiting:()Z
ifne 36
aload 5
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isHiddenFromExternalView:()Z
ifne 36
12: new sun.jvm.hotspot.runtime.ThreadStackTrace
dup
aload 5
invokespecial sun.jvm.hotspot.runtime.ThreadStackTrace.<init>:(Lsun/jvm/hotspot/runtime/JavaThread;)V
astore 7
start local 7 13: aload 7
iconst_m1
invokevirtual sun.jvm.hotspot.runtime.ThreadStackTrace.dumpStack:(I)V
14: iinc 2 1
15: aload 7
invokevirtual sun.jvm.hotspot.runtime.ThreadStackTrace.getStackDepth:()I
istore 8
start local 8 16: iload 1
istore 9
start local 9 17: iconst_0
istore 10
start local 10 18: goto 25
19: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter int int sun.jvm.hotspot.runtime.Threads int sun.jvm.hotspot.runtime.JavaThread sun.jvm.hotspot.oops.Oop sun.jvm.hotspot.runtime.ThreadStackTrace int int int
StackMap stack:
aload 7
iload 10
invokevirtual sun.jvm.hotspot.runtime.ThreadStackTrace.stackFrameAt:(I)Lsun/jvm/hotspot/runtime/StackFrameInfo;
astore 11
start local 11 20: aload 11
invokevirtual sun.jvm.hotspot.runtime.StackFrameInfo.getMethod:()Lsun/jvm/hotspot/oops/Method;
astore 12
start local 12 21: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.KlassMap:Ljava/util/ArrayList;
aload 12
invokevirtual sun.jvm.hotspot.oops.Method.getMethodHolder:()Lsun/jvm/hotspot/oops/InstanceKlass;
invokevirtual java.util.ArrayList.indexOf:(Ljava/lang/Object;)I
iconst_1
iadd
istore 13
start local 13 22: getstatic sun.jvm.hotspot.utilities.HeapHprofBinWriter.$assertionsDisabled:Z
ifne 23
iload 13
ifgt 23
new java.lang.AssertionError
dup
ldc "class not found"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
23: StackMap locals: sun.jvm.hotspot.runtime.StackFrameInfo sun.jvm.hotspot.oops.Method int
StackMap stack:
aload 0
iinc 1 1
iload 1
iload 13
aload 12
aload 11
invokevirtual sun.jvm.hotspot.runtime.StackFrameInfo.getBCI:()I
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackFrame:(IILsun/jvm/hotspot/oops/Method;I)V
end local 13 end local 12 end local 11 24: iinc 10 1
StackMap locals:
StackMap stack:
25: iload 10
iload 8
if_icmplt 19
end local 10 26: aload 0
iconst_5
iconst_3
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
l2i
imul
iload 8
invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getOopSize:()J
l2i
imul
iadd
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
27: iload 2
iconst_1
iadd
istore 10
start local 10 28: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 10
invokevirtual java.io.DataOutputStream.writeInt:(I)V
29: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 2
invokevirtual java.io.DataOutputStream.writeInt:(I)V
30: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 8
invokevirtual java.io.DataOutputStream.writeInt:(I)V
31: iconst_1
istore 11
start local 11 32: goto 35
33: StackMap locals: int
StackMap stack:
aload 0
iload 9
iload 11
iadd
i2l
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
34: iinc 11 1
StackMap locals:
StackMap stack:
35: iload 11
iload 8
if_icmple 33
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 36: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter int int sun.jvm.hotspot.runtime.Threads int
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
37: iload 4
aload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 9
end local 4 38: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
5 39 1 frameSerialNum I
6 39 2 numThreads I
7 39 3 threads Lsun/jvm/hotspot/runtime/Threads;
8 38 4 i I
10 36 5 thread Lsun/jvm/hotspot/runtime/JavaThread;
11 36 6 threadObj Lsun/jvm/hotspot/oops/Oop;
13 36 7 st Lsun/jvm/hotspot/runtime/ThreadStackTrace;
16 36 8 depth I
17 36 9 threadFrameStart I
18 26 10 j I
20 24 11 frame Lsun/jvm/hotspot/runtime/StackFrameInfo;
21 24 12 m Lsun/jvm/hotspot/oops/Method;
22 24 13 classSerialNum I
28 36 10 stackSerialNum I
32 36 11 j I
Exceptions:
throws java.io.IOException
private void dumpStackFrame(int, int, sun.jvm.hotspot.oops.Method, int);
descriptor: (IILsun/jvm/hotspot/oops/Method;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
invokevirtual sun.jvm.hotspot.oops.Method.isNative:()Z
ifeq 3
1: bipush -3
istore 5
start local 5 2: goto 4
end local 5 3: StackMap locals:
StackMap stack:
aload 3
iload 4
invokevirtual sun.jvm.hotspot.oops.Method.getLineNumberFromBCI:(I)I
istore 5
start local 5 4: StackMap locals: int
StackMap stack:
aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol:(Lsun/jvm/hotspot/oops/Symbol;)V
5: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getSignature:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol:(Lsun/jvm/hotspot/oops/Symbol;)V
6: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getMethodHolder:()Lsun/jvm/hotspot/oops/InstanceKlass;
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getSourceFileName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol:(Lsun/jvm/hotspot/oops/Symbol;)V
7: aload 0
iconst_4
iconst_4
invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getOopSize:()J
l2i
imul
iconst_2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
l2i
imul
iadd
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
8: aload 0
iload 1
i2l
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
9: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
10: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getSignature:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
11: aload 0
aload 3
invokevirtual sun.jvm.hotspot.oops.Method.getMethodHolder:()Lsun/jvm/hotspot/oops/InstanceKlass;
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getSourceFileName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
12: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 2
invokevirtual java.io.DataOutputStream.writeInt:(I)V
13: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 5
invokevirtual java.io.DataOutputStream.writeInt:(I)V
14: 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 15 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 15 1 frameSN I
0 15 2 classSN I
0 15 3 m Lsun/jvm/hotspot/oops/Method;
0 15 4 bci I
2 3 5 lineNumber I
4 15 5 lineNumber I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
frameSN
classSN
m
bci
protected void writeJavaThread(sun.jvm.hotspot.runtime.JavaThread, int);
descriptor: (Lsun/jvm/hotspot/runtime/JavaThread;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 8
invokevirtual java.io.DataOutputStream.writeByte:(I)V
1: aload 0
aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getThreadObj:()Lsun/jvm/hotspot/oops/Oop;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 2
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
4: aload 0
aload 1
iload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeLocalJNIHandles:(Lsun/jvm/hotspot/runtime/JavaThread;I)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 6 1 jt Lsun/jvm/hotspot/runtime/JavaThread;
0 6 2 index I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jt
index
protected void writeLocalJNIHandles(sun.jvm.hotspot.runtime.JavaThread, int);
descriptor: (Lsun/jvm/hotspot/runtime/JavaThread;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
istore 3
start local 3 1: aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.activeHandles:()Lsun/jvm/hotspot/runtime/JNIHandleBlock;
astore 4
start local 4 2: aload 4
ifnull 7
3: aload 4
new sun.jvm.hotspot.utilities.HeapHprofBinWriter$2
dup
aload 0
iload 3
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter$2.<init>:(Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;I)V
invokevirtual sun.jvm.hotspot.runtime.JNIHandleBlock.oopsDo:(Lsun/jvm/hotspot/runtime/AddressVisitor;)V
4: goto 7
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.runtime.JavaThread int int sun.jvm.hotspot.runtime.JNIHandleBlock
StackMap stack: java.lang.RuntimeException
5: astore 5
start local 5 6: aload 0
aload 5
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.handleRuntimeException:(Ljava/lang/RuntimeException;)V
end local 5 7: 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 8 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 8 1 jt Lsun/jvm/hotspot/runtime/JavaThread;
0 8 2 index I
1 8 3 threadIndex I
2 8 4 blk Lsun/jvm/hotspot/runtime/JNIHandleBlock;
6 7 5 re Ljava/lang/RuntimeException;
Exception table:
from to target type
3 4 5 Class java.lang.RuntimeException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jt
index
protected void writeGlobalJNIHandle(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
lconst_0
invokeinterface sun.jvm.hotspot.debugger.Address.getOopHandleAt:(J)Lsun/jvm/hotspot/debugger/OopHandle;
astore 2
start local 2 1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.objectHeap:Lsun/jvm/hotspot/oops/ObjectHeap;
aload 2
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.newOop:(Lsun/jvm/hotspot/debugger/OopHandle;)Lsun/jvm/hotspot/oops/Oop;
astore 3
start local 3 2: aload 3
ifnull 6
aload 0
aload 3
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.isJavaVisible:(Lsun/jvm/hotspot/oops/Oop;)Z
ifeq 6
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeByte:(I)V
4: aload 0
aload 3
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
5: aload 0
aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
6: StackMap locals: sun.jvm.hotspot.debugger.OopHandle sun.jvm.hotspot.oops.Oop
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 handleAddr Lsun/jvm/hotspot/debugger/Address;
1 7 2 oopHandle Lsun/jvm/hotspot/debugger/OopHandle;
2 7 3 oop Lsun/jvm/hotspot/oops/Oop;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handleAddr
protected void writeObjectArray(sun.jvm.hotspot.oops.ObjArray);
descriptor: (Lsun/jvm/hotspot/oops/ObjArray;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getArrayHeaderSize:(Z)I
istore 2
start local 2 1: aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjArray.getLength:()J
2: iload 2
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
i2l
4: ldc "Object"
5: invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.calculateArrayMaxLength:(JIJLjava/lang/String;)I
istore 3
start local 3 6: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 34
invokevirtual java.io.DataOutputStream.writeByte:(I)V
7: aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
8: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
9: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 3
invokevirtual java.io.DataOutputStream.writeInt:(I)V
10: aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjArray.getKlass:()Lsun/jvm/hotspot/oops/Klass;
invokevirtual sun.jvm.hotspot.oops.Klass.getJavaMirror:()Lsun/jvm/hotspot/oops/Instance;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
11: iconst_0
istore 4
start local 4 12: goto 16
13: StackMap locals: int int int
StackMap stack:
aload 1
iload 4
i2l
invokevirtual sun.jvm.hotspot.oops.ObjArray.getOopHandleAt:(J)Lsun/jvm/hotspot/debugger/OopHandle;
astore 5
start local 5 14: aload 0
aload 0
aload 5
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
end local 5 15: iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
iload 3
if_icmplt 13
end local 4 17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 18 1 array Lsun/jvm/hotspot/oops/ObjArray;
1 18 2 headerSize I
6 18 3 length I
12 17 4 index I
14 15 5 handle Lsun/jvm/hotspot/debugger/OopHandle;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
protected void writePrimitiveArray(sun.jvm.hotspot.oops.TypeArray);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=9, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getArrayHeaderSize:(Z)I
istore 2
start local 2 1: aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getKlass:()Lsun/jvm/hotspot/oops/Klass;
checkcast sun.jvm.hotspot.oops.TypeArrayKlass
astore 3
start local 3 2: aload 3
invokevirtual sun.jvm.hotspot.oops.TypeArrayKlass.getElementType:()I
istore 4
start local 4 3: aload 3
invokevirtual sun.jvm.hotspot.oops.TypeArrayKlass.getElementTypeName:()Ljava/lang/String;
astore 5
start local 5 4: aload 0
iload 4
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getSizeForType:(I)J
lstore 6
start local 6 5: aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getLength:()J
6: iload 2
7: lload 6
8: aload 5
9: invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.calculateArrayMaxLength:(JIJLjava/lang/String;)I
istore 8
start local 8 10: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 35
invokevirtual java.io.DataOutputStream.writeByte:(I)V
11: aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
12: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
13: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 8
invokevirtual java.io.DataOutputStream.writeInt:(I)V
14: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 4
i2b
invokevirtual java.io.DataOutputStream.writeByte:(I)V
15: iload 4
tableswitch { // 4 - 11
4: 16
5: 18
6: 20
7: 22
8: 24
9: 26
10: 28
11: 30
default: 32
}
16: StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.oops.TypeArray int sun.jvm.hotspot.oops.TypeArrayKlass int java.lang.String long int
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeBooleanArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
17: goto 35
18: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeCharArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
19: goto 35
20: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFloatArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
21: goto 35
22: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeDoubleArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
23: goto 35
24: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeByteArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
25: goto 35
26: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeShortArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
27: goto 35
28: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeIntArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
29: goto 35
30: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 8
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeLongArray:(Lsun/jvm/hotspot/oops/TypeArray;I)V
31: goto 35
32: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
33: new java.lang.StringBuilder
dup
ldc "Should not reach here: Unknown type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
return
end local 8 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 36 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 36 1 array Lsun/jvm/hotspot/oops/TypeArray;
1 36 2 headerSize I
2 36 3 tak Lsun/jvm/hotspot/oops/TypeArrayKlass;
3 36 4 type I
4 36 5 typeName Ljava/lang/String;
5 36 6 typeSize J
10 36 8 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
private void writeBooleanArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BOOLEAN_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BOOLEAN_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJBooleanAt:(J)Z
invokevirtual java.io.DataOutputStream.writeBoolean:(Z)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeByteArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.BYTE_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJByteAt:(J)B
invokevirtual java.io.DataOutputStream.writeByte:(I)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeShortArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.SHORT_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.SHORT_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJShortAt:(J)S
invokevirtual java.io.DataOutputStream.writeShort:(I)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeIntArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.INT_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJIntAt:(J)I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeLongArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.LONG_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.LONG_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJLongAt:(J)J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeCharArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.CHAR_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.CHAR_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJCharAt:(J)C
invokevirtual java.io.DataOutputStream.writeChar:(I)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeFloatArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.FLOAT_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.FLOAT_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJFloatAt:(J)F
invokevirtual java.io.DataOutputStream.writeFloat:(F)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
private void writeDoubleArray(sun.jvm.hotspot.oops.TypeArray, int);
descriptor: (Lsun/jvm/hotspot/oops/TypeArray;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.DOUBLE_BASE_OFFSET:J
iload 3
i2l
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.DOUBLE_SIZE:J
lmul
ladd
lstore 4
start local 4 3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokevirtual sun.jvm.hotspot.oops.TypeArray.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
lload 4
invokeinterface sun.jvm.hotspot.debugger.OopHandle.getJDoubleAt:(J)D
invokevirtual java.io.DataOutputStream.writeDouble:(D)V
end local 4 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 7 1 array Lsun/jvm/hotspot/oops/TypeArray;
0 7 2 length I
1 6 3 index I
3 4 4 offset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
length
protected void writeInstance(sun.jvm.hotspot.oops.Instance);
descriptor: (Lsun/jvm/hotspot/oops/Instance;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.jvm.hotspot.oops.Instance.getKlass:()Lsun/jvm/hotspot/oops/Klass;
astore 2
start local 2 1: aload 2
invokevirtual sun.jvm.hotspot.oops.Klass.getClassLoaderData:()Lsun/jvm/hotspot/classfile/ClassLoaderData;
ifnonnull 3
2: return
3: StackMap locals: sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
bipush 33
invokevirtual java.io.DataOutputStream.writeByte:(I)V
4: aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
5: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
6: aload 0
aload 2
invokevirtual sun.jvm.hotspot.oops.Klass.getJavaMirror:()Lsun/jvm/hotspot/oops/Instance;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(Lsun/jvm/hotspot/oops/Oop;)V
7: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.classDataCache:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData
astore 3
start local 3 8: getstatic sun.jvm.hotspot.utilities.Assert.ASSERTS_ENABLED:Z
ifeq 12
9: aload 3
ifnull 10
iconst_1
goto 11
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData
StackMap stack:
10: iconst_0
StackMap locals:
StackMap stack: int
11: new java.lang.StringBuilder
dup
ldc "can not get class data for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual sun.jvm.hotspot.oops.Klass.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.oops.Symbol.asString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual sun.jvm.hotspot.oops.Klass.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;
invokestatic sun.jvm.hotspot.utilities.Assert.that:(ZLjava/lang/String;)V
12: StackMap locals:
StackMap stack:
aload 3
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData.fields:Ljava/util/List;
astore 4
start local 4 13: aload 3
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData.instSize:I
istore 5
start local 5 14: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 5
invokevirtual java.io.DataOutputStream.writeInt:(I)V
15: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
start local 6 16: goto 18
17: StackMap locals: java.util.List int java.util.Iterator
StackMap stack:
aload 0
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeField:(Lsun/jvm/hotspot/oops/Field;Lsun/jvm/hotspot/oops/Oop;)V
18: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
end local 6 19: 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 20 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 20 1 instance Lsun/jvm/hotspot/oops/Instance;
1 20 2 klass Lsun/jvm/hotspot/oops/Klass;
8 20 3 cd Lsun/jvm/hotspot/utilities/HeapHprofBinWriter$ClassData;
13 20 4 fields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
14 20 5 size I
16 19 6 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
instance
private void writeFieldDescriptors(java.util.List<sun.jvm.hotspot.oops.Field>, sun.jvm.hotspot.oops.InstanceKlass);
descriptor: (Ljava/util/List;Lsun/jvm/hotspot/oops/InstanceKlass;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
invokeinterface java.util.List.size:()I
i2s
invokevirtual java.io.DataOutputStream.writeShort:(I)V
1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 11
3: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
astore 4
start local 4 4: aload 4
invokevirtual sun.jvm.hotspot.oops.Field.getName:()Lsun/jvm/hotspot/oops/Symbol;
astore 5
start local 5 5: aload 0
aload 5
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
6: aload 4
invokevirtual sun.jvm.hotspot.oops.Field.getSignature:()Lsun/jvm/hotspot/oops/Symbol;
lconst_0
invokevirtual sun.jvm.hotspot.oops.Symbol.getByteAt:(J)B
i2c
istore 6
start local 6 7: iload 6
invokestatic sun.jvm.hotspot.utilities.HeapHprofBinWriter.signatureToHprofKind:(C)I
istore 7
start local 7 8: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 7
i2b
invokevirtual java.io.DataOutputStream.writeByte:(I)V
9: aload 2
ifnull 11
10: aload 0
aload 4
aload 2
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getJavaMirror:()Lsun/jvm/hotspot/oops/Instance;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeField:(Lsun/jvm/hotspot/oops/Field;Lsun/jvm/hotspot/oops/Oop;)V
end local 7 end local 6 end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 3 12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 13 1 fields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
0 13 2 ik Lsun/jvm/hotspot/oops/InstanceKlass;
2 12 3 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
4 11 4 field Lsun/jvm/hotspot/oops/Field;
5 11 5 name Lsun/jvm/hotspot/oops/Symbol;
7 11 6 typeCode C
8 11 7 kind I
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;Lsun/jvm/hotspot/oops/InstanceKlass;)V
MethodParameters:
Name Flags
fields
ik
public static int signatureToHprofKind(char);
descriptor: (C)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
lookupswitch { // 10
66: 6
67: 3
68: 5
70: 4
73: 8
74: 9
76: 1
83: 7
90: 2
91: 1
default: 10
}
1: StackMap locals:
StackMap stack:
iconst_2
ireturn
2: StackMap locals:
StackMap stack:
iconst_4
ireturn
3: StackMap locals:
StackMap stack:
iconst_5
ireturn
4: StackMap locals:
StackMap stack:
bipush 6
ireturn
5: StackMap locals:
StackMap stack:
bipush 7
ireturn
6: StackMap locals:
StackMap stack:
bipush 8
ireturn
7: StackMap locals:
StackMap stack:
bipush 9
ireturn
8: StackMap locals:
StackMap stack:
bipush 10
ireturn
9: StackMap locals:
StackMap stack:
bipush 11
ireturn
10: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "should not reach here"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 ch C
MethodParameters:
Name Flags
ch
private void writeField(sun.jvm.hotspot.oops.Field, sun.jvm.hotspot.oops.Oop);
descriptor: (Lsun/jvm/hotspot/oops/Field;Lsun/jvm/hotspot/oops/Oop;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual sun.jvm.hotspot.oops.Field.getSignature:()Lsun/jvm/hotspot/oops/Symbol;
lconst_0
invokevirtual sun.jvm.hotspot.oops.Symbol.getByteAt:(J)B
i2c
istore 3
start local 3 1: iload 3
lookupswitch { // 10
66: 6
67: 4
68: 16
70: 14
73: 10
74: 12
76: 18
83: 8
90: 2
91: 18
default: 25
}
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.BooleanField
aload 2
invokevirtual sun.jvm.hotspot.oops.BooleanField.getValue:(Lsun/jvm/hotspot/oops/Oop;)Z
invokevirtual java.io.DataOutputStream.writeBoolean:(Z)V
3: goto 26
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.CharField
aload 2
invokevirtual sun.jvm.hotspot.oops.CharField.getValue:(Lsun/jvm/hotspot/oops/Oop;)C
invokevirtual java.io.DataOutputStream.writeChar:(I)V
5: goto 26
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.ByteField
aload 2
invokevirtual sun.jvm.hotspot.oops.ByteField.getValue:(Lsun/jvm/hotspot/oops/Oop;)B
invokevirtual java.io.DataOutputStream.writeByte:(I)V
7: goto 26
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.ShortField
aload 2
invokevirtual sun.jvm.hotspot.oops.ShortField.getValue:(Lsun/jvm/hotspot/oops/Oop;)S
invokevirtual java.io.DataOutputStream.writeShort:(I)V
9: goto 26
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.IntField
aload 2
invokevirtual sun.jvm.hotspot.oops.IntField.getValue:(Lsun/jvm/hotspot/oops/Oop;)I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
11: goto 26
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.LongField
aload 2
invokevirtual sun.jvm.hotspot.oops.LongField.getValue:(Lsun/jvm/hotspot/oops/Oop;)J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
13: goto 26
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.FloatField
aload 2
invokevirtual sun.jvm.hotspot.oops.FloatField.getValue:(Lsun/jvm/hotspot/oops/Oop;)F
invokevirtual java.io.DataOutputStream.writeFloat:(F)V
15: goto 26
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 1
checkcast sun.jvm.hotspot.oops.DoubleField
aload 2
invokevirtual sun.jvm.hotspot.oops.DoubleField.getValue:(Lsun/jvm/hotspot/oops/Oop;)D
invokevirtual java.io.DataOutputStream.writeDouble:(D)V
17: goto 26
18: StackMap locals:
StackMap stack:
invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.isCompressedOopsEnabled:()Z
ifeq 22
19: aload 1
checkcast sun.jvm.hotspot.oops.NarrowOopField
aload 2
invokevirtual sun.jvm.hotspot.oops.NarrowOopField.getValueAsOopHandle:(Lsun/jvm/hotspot/oops/Oop;)Lsun/jvm/hotspot/debugger/OopHandle;
astore 4
start local 4 20: aload 0
aload 0
aload 4
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
end local 4 21: goto 26
22: StackMap locals:
StackMap stack:
aload 1
checkcast sun.jvm.hotspot.oops.OopField
aload 2
invokevirtual sun.jvm.hotspot.oops.OopField.getValueAsOopHandle:(Lsun/jvm/hotspot/oops/Oop;)Lsun/jvm/hotspot/debugger/OopHandle;
astore 4
start local 4 23: aload 0
aload 0
aload 4
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
end local 4 24: goto 26
25: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "should not reach here"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 27 1 field Lsun/jvm/hotspot/oops/Field;
0 27 2 oop Lsun/jvm/hotspot/oops/Oop;
1 27 3 typeCode C
20 21 4 handle Lsun/jvm/hotspot/debugger/OopHandle;
23 24 4 handle Lsun/jvm/hotspot/debugger/OopHandle;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
field
oop
private void (int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 1
i2b
invokevirtual java.io.DataOutputStream.writeByte:(I)V
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iload 2
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 4 1 tag I
0 4 2 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
tag
len
private void writeDummyTrace();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_5
bipush 12
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeInt:(I)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
Exceptions:
throws java.io.IOException
private void writeClassSymbols(sun.jvm.hotspot.oops.Klass);
descriptor: (Lsun/jvm/hotspot/oops/Klass;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.Klass.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol:(Lsun/jvm/hotspot/oops/Symbol;)V
1: aload 1
instanceof sun.jvm.hotspot.oops.InstanceKlass
ifeq 9
2: aload 1
checkcast sun.jvm.hotspot.oops.InstanceKlass
astore 2
start local 2 3: aload 2
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields:()Ljava/util/List;
astore 3
start local 3 4: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 5: goto 8
6: StackMap locals: sun.jvm.hotspot.oops.InstanceKlass java.util.List java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
astore 5
start local 5 7: aload 0
aload 5
invokevirtual sun.jvm.hotspot.oops.Field.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol:(Lsun/jvm/hotspot/oops/Symbol;)V
end local 5 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 4 end local 3 end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 10 1 k Lsun/jvm/hotspot/oops/Klass;
3 9 2 ik Lsun/jvm/hotspot/oops/InstanceKlass;
4 9 3 declaredFields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
5 9 4 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
7 8 5 field Lsun/jvm/hotspot/oops/Field;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
k
private void writeSymbols();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getClassLoaderDataGraph:()Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
astore 1
start local 1 1: aload 1
new sun.jvm.hotspot.utilities.HeapHprofBinWriter$3
dup
aload 0
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter$3.<init>:(Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;)V
invokevirtual sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo:(Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph$ClassVisitor;)V
2: goto 5
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.classfile.ClassLoaderDataGraph
StackMap stack: java.lang.RuntimeException
3: astore 2
start local 2 4: aload 0
aload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.handleRuntimeException:(Ljava/lang/RuntimeException;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
1 6 1 cldGraph Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
4 5 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
1 2 3 Class java.lang.RuntimeException
Exceptions:
throws java.io.IOException
private void writeSymbol(sun.jvm.hotspot.oops.Symbol);
descriptor: (Lsun/jvm/hotspot/oops/Symbol;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.names:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
ifeq 9
1: aload 1
ifnull 7
2: aload 1
invokevirtual sun.jvm.hotspot.oops.Symbol.asString:()Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 2
start local 2 3: aload 0
iconst_1
aload 2
arraylength
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
iadd
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
4: aload 0
aload 1
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
5: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 2
invokevirtual java.io.DataOutputStream.write:([B)V
end local 2 6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
iconst_1
iconst_0
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
iadd
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeHeader:(II)V
8: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID:(Lsun/jvm/hotspot/oops/Symbol;)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 10 1 sym Lsun/jvm/hotspot/oops/Symbol;
3 6 2 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sym
private void writeClasses();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getClassLoaderDataGraph:()Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
astore 1
start local 1 1: aload 1
new sun.jvm.hotspot.utilities.HeapHprofBinWriter$4
dup
aload 0
invokespecial sun.jvm.hotspot.utilities.HeapHprofBinWriter$4.<init>:(Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;)V
invokevirtual sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo:(Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph$ClassVisitor;)V
2: goto 5
StackMap locals: sun.jvm.hotspot.utilities.HeapHprofBinWriter sun.jvm.hotspot.classfile.ClassLoaderDataGraph
StackMap stack: java.lang.RuntimeException
3: astore 2
start local 2 4: aload 0
aload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.handleRuntimeException:(Ljava/lang/RuntimeException;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
1 6 1 cldGraph Lsun/jvm/hotspot/classfile/ClassLoaderDataGraph;
4 5 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
1 2 3 Class java.lang.RuntimeException
Exceptions:
throws java.io.IOException
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
ldc "JAVA PROFILE 1.0.2"
invokevirtual java.io.DataOutputStream.writeBytes:(Ljava/lang/String;)V
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
iconst_0
invokevirtual java.io.DataOutputStream.writeByte:(I)V
2: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
invokestatic java.lang.System.currentTimeMillis:()J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
Exceptions:
throws java.io.IOException
private void writeObjectID(sun.jvm.hotspot.oops.Oop);
descriptor: (Lsun/jvm/hotspot/oops/Oop;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual sun.jvm.hotspot.oops.Oop.getHandle:()Lsun/jvm/hotspot/debugger/OopHandle;
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: sun.jvm.hotspot.debugger.OopHandle
2: astore 2
start local 2 3: aload 0
aload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
lstore 3
start local 3 4: aload 0
lload 3
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 6 1 oop Lsun/jvm/hotspot/oops/Oop;
3 6 2 handle Lsun/jvm/hotspot/debugger/OopHandle;
4 6 3 address J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oop
private void writeSymbolID(sun.jvm.hotspot.oops.Symbol);
descriptor: (Lsun/jvm/hotspot/oops/Symbol;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic sun.jvm.hotspot.utilities.HeapHprofBinWriter.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.names:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.contains:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.Symbol.getAddress:()Lsun/jvm/hotspot/debugger/Address;
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
goto 3
StackMap locals:
StackMap stack:
2: aload 0
aconst_null
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
StackMap locals:
StackMap stack: long
3: lstore 2
start local 2 4: aload 0
lload 2
invokevirtual sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeObjectID:(J)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 6 1 sym Lsun/jvm/hotspot/oops/Symbol;
4 6 2 address J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sym
private void writeObjectID(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
iconst_4
if_icmpne 3
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
lload 1
l2i
invokevirtual java.io.DataOutputStream.writeInt:(I)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.out:Ljava/io/DataOutputStream;
lload 1
invokevirtual java.io.DataOutputStream.writeLong:(J)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 5 1 address J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
address
private long getAddressValue(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
lconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.dbg:Lsun/jvm/hotspot/debugger/Debugger;
aload 1
invokeinterface sun.jvm.hotspot.debugger.Debugger.getAddressValue:(Lsun/jvm/hotspot/debugger/Address;)J
StackMap locals:
StackMap stack: long
2: lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 3 1 addr Lsun/jvm/hotspot/debugger/Address;
MethodParameters:
Name Flags
addr
private static java.util.List<sun.jvm.hotspot.oops.Field> getInstanceFields(sun.jvm.hotspot.oops.InstanceKlass);
descriptor: (Lsun/jvm/hotspot/oops/InstanceKlass;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: goto 11
3: StackMap locals: sun.jvm.hotspot.oops.InstanceKlass java.util.List
StackMap stack:
aload 1
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields:()Ljava/util/List;
astore 3
start local 3 4: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 5: goto 9
6: StackMap locals: java.util.List java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
astore 5
start local 5 7: aload 5
invokevirtual sun.jvm.hotspot.oops.Field.isStatic:()Z
ifne 9
8: aload 2
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 9: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 4 10: aload 1
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getSuper:()Lsun/jvm/hotspot/oops/Klass;
checkcast sun.jvm.hotspot.oops.InstanceKlass
astore 1
end local 3 11: StackMap locals:
StackMap stack:
aload 1
ifnonnull 3
12: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 ik Lsun/jvm/hotspot/oops/InstanceKlass;
1 13 1 klass Lsun/jvm/hotspot/oops/InstanceKlass;
2 13 2 res Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
4 11 3 curFields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
5 10 4 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
7 9 5 f Lsun/jvm/hotspot/oops/Field;
Signature: (Lsun/jvm/hotspot/oops/InstanceKlass;)Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
MethodParameters:
Name Flags
ik
private int getSizeForFields(java.util.List<sun.jvm.hotspot.oops.Field>);
descriptor: (Ljava/util/List;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 17
3: StackMap locals: int java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.Field
astore 4
start local 4 4: aload 4
invokevirtual sun.jvm.hotspot.oops.Field.getSignature:()Lsun/jvm/hotspot/oops/Symbol;
lconst_0
invokevirtual sun.jvm.hotspot.oops.Symbol.getByteAt:(J)B
i2c
istore 5
start local 5 5: iload 5
lookupswitch { // 10
66: 6
67: 8
68: 14
70: 10
73: 10
74: 14
76: 12
83: 8
90: 6
91: 12
default: 16
}
6: StackMap locals: sun.jvm.hotspot.oops.Field int
StackMap stack:
iinc 2 1
7: goto 17
8: StackMap locals:
StackMap stack:
iinc 2 2
9: goto 17
10: StackMap locals:
StackMap stack:
iinc 2 4
11: goto 17
12: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield sun.jvm.hotspot.utilities.HeapHprofBinWriter.OBJ_ID_SIZE:I
iadd
istore 2
13: goto 17
14: StackMap locals:
StackMap stack:
iinc 2 8
15: goto 17
16: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "should not reach here"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 17: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 3 18: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/jvm/hotspot/utilities/HeapHprofBinWriter;
0 19 1 fields Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;
1 19 2 size I
2 18 3 itr Ljava/util/Iterator<Lsun/jvm/hotspot/oops/Field;>;
4 17 4 field Lsun/jvm/hotspot/oops/Field;
5 17 5 typeCode C
Signature: (Ljava/util/List<Lsun/jvm/hotspot/oops/Field;>;)I
MethodParameters:
Name Flags
fields
}
SourceFile: "HeapHprofBinWriter.java"
NestMembers:
sun.jvm.hotspot.utilities.HeapHprofBinWriter$1 sun.jvm.hotspot.utilities.HeapHprofBinWriter$2 sun.jvm.hotspot.utilities.HeapHprofBinWriter$3 sun.jvm.hotspot.utilities.HeapHprofBinWriter$4 sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData
InnerClasses:
public abstract ClassVisitor = sun.jvm.hotspot.classfile.ClassLoaderDataGraph$ClassVisitor of sun.jvm.hotspot.classfile.ClassLoaderDataGraph
sun.jvm.hotspot.utilities.HeapHprofBinWriter$1
sun.jvm.hotspot.utilities.HeapHprofBinWriter$2
sun.jvm.hotspot.utilities.HeapHprofBinWriter$3
sun.jvm.hotspot.utilities.HeapHprofBinWriter$4
private ClassData = sun.jvm.hotspot.utilities.HeapHprofBinWriter$ClassData of sun.jvm.hotspot.utilities.HeapHprofBinWriter