public class sun.jvm.hotspot.oops.ObjectHistogram implements sun.jvm.hotspot.oops.HeapVisitor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.oops.ObjectHistogram
super_class: java.lang.Object
{
private java.util.HashMap<sun.jvm.hotspot.oops.Klass, sun.jvm.hotspot.oops.ObjectHistogramElement> map;
descriptor: Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashMap<Lsun/jvm/hotspot/oops/Klass;Lsun/jvm/hotspot/oops/ObjectHistogramElement;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.jvm.hotspot.oops.ObjectHistogram.map:Ljava/util/HashMap;
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
public void prologue(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
0 1 1 size J
MethodParameters:
Name Flags
size
public boolean doObj(sun.jvm.hotspot.oops.Oop);
descriptor: (Lsun/jvm/hotspot/oops/Oop;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.jvm.hotspot.oops.Oop.getKlass:()Lsun/jvm/hotspot/oops/Klass;
astore 2
start local 2 1: aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogram.map:Ljava/util/HashMap;
aload 2
invokevirtual java.util.HashMap.containsKey:(Ljava/lang/Object;)Z
ifne 2
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogram.map:Ljava/util/HashMap;
aload 2
new sun.jvm.hotspot.oops.ObjectHistogramElement
dup
aload 2
invokespecial sun.jvm.hotspot.oops.ObjectHistogramElement.<init>:(Lsun/jvm/hotspot/oops/Klass;)V
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals: sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogram.map:Ljava/util/HashMap;
aload 2
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.ObjectHistogramElement
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.updateWith:(Lsun/jvm/hotspot/oops/Oop;)V
3: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
0 4 1 obj Lsun/jvm/hotspot/oops/Oop;
1 4 2 klass Lsun/jvm/hotspot/oops/Klass;
MethodParameters:
Name Flags
obj
public void epilogue();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
public java.util.List<sun.jvm.hotspot.oops.ObjectHistogramElement> getElements();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogram.map:Ljava/util/HashMap;
invokevirtual java.util.HashMap.values:()Ljava/util/Collection;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: aload 1
new sun.jvm.hotspot.oops.ObjectHistogram$1
dup
aload 0
invokespecial sun.jvm.hotspot.oops.ObjectHistogram$1.<init>:(Lsun/jvm/hotspot/oops/ObjectHistogram;)V
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
1 4 1 list Ljava/util/List<Lsun/jvm/hotspot/oops/ObjectHistogramElement;>;
Signature: ()Ljava/util/List<Lsun/jvm/hotspot/oops/ObjectHistogramElement;>;
public void print();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual sun.jvm.hotspot.oops.ObjectHistogram.printOn:(Ljava/io/PrintStream;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
public void printOn(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.jvm.hotspot.oops.ObjectHistogram.getElements:()Ljava/util/List;
astore 2
start local 2 1: aload 1
invokestatic sun.jvm.hotspot.oops.ObjectHistogramElement.titleOn:(Ljava/io/PrintStream;)V
2: aload 2
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 13
7: StackMap locals: sun.jvm.hotspot.oops.ObjectHistogram java.io.PrintStream java.util.List java.util.Iterator int int int
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.oops.ObjectHistogramElement
astore 7
start local 7 8: iinc 4 1
9: iload 5
i2l
aload 7
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getCount:()J
ladd
l2i
istore 5
10: iload 6
i2l
aload 7
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getSize:()J
ladd
l2i
istore 6
11: aload 1
new java.lang.StringBuilder
dup
iload 4
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\t\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
12: aload 7
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.printOn:(Ljava/io/PrintStream;)V
end local 7 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
14: aload 1
new java.lang.StringBuilder
dup
ldc "Total : \t"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: return
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 16 0 this Lsun/jvm/hotspot/oops/ObjectHistogram;
0 16 1 tty Ljava/io/PrintStream;
1 16 2 list Ljava/util/List<Lsun/jvm/hotspot/oops/ObjectHistogramElement;>;
3 16 3 iterator Ljava/util/Iterator<Lsun/jvm/hotspot/oops/ObjectHistogramElement;>;
4 16 4 num I
5 16 5 totalCount I
6 16 6 totalSize I
8 13 7 el Lsun/jvm/hotspot/oops/ObjectHistogramElement;
MethodParameters:
Name Flags
tty
}
SourceFile: "ObjectHistogram.java"
NestMembers:
sun.jvm.hotspot.oops.ObjectHistogram$1
InnerClasses:
sun.jvm.hotspot.oops.ObjectHistogram$1