public class sun.jvm.hotspot.oops.ObjectHistogramElement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.oops.ObjectHistogramElement
super_class: java.lang.Object
{
private sun.jvm.hotspot.oops.Klass klass;
descriptor: Lsun/jvm/hotspot/oops/Klass;
flags: (0x0002) ACC_PRIVATE
private long count;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long size;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(sun.jvm.hotspot.oops.Klass);
descriptor: (Lsun/jvm/hotspot/oops/Klass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.jvm.hotspot.oops.ObjectHistogramElement.klass:Lsun/jvm/hotspot/oops/Klass;
2: aload 0
lconst_0
putfield sun.jvm.hotspot.oops.ObjectHistogramElement.count:J
3: aload 0
lconst_0
putfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
0 5 1 k Lsun/jvm/hotspot/oops/Klass;
MethodParameters:
Name Flags
k
public void updateWith(sun.jvm.hotspot.oops.Oop);
descriptor: (Lsun/jvm/hotspot/oops/Oop;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.count:J
lconst_1
ladd
putfield sun.jvm.hotspot.oops.ObjectHistogramElement.count:J
1: aload 0
dup
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
aload 1
invokevirtual sun.jvm.hotspot.oops.Oop.getObjectSize:()J
ladd
putfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
0 3 1 obj Lsun/jvm/hotspot/oops/Oop;
MethodParameters:
Name Flags
obj
public int compare(sun.jvm.hotspot.oops.ObjectHistogramElement);
descriptor: (Lsun/jvm/hotspot/oops/ObjectHistogramElement;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
lsub
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
0 1 1 other Lsun/jvm/hotspot/oops/ObjectHistogramElement;
MethodParameters:
Name Flags
other
public sun.jvm.hotspot.oops.Klass getKlass();
descriptor: ()Lsun/jvm/hotspot/oops/Klass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.klass:Lsun/jvm/hotspot/oops/Klass;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
public long getCount();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.count:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
public long getSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
private java.lang.String getInternalName(sun.jvm.hotspot.oops.Klass);
descriptor: (Lsun/jvm/hotspot/oops/Klass;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: aload 0
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getKlass:()Lsun/jvm/hotspot/oops/Klass;
new java.io.PrintStream
dup
aload 2
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
invokevirtual sun.jvm.hotspot.oops.Klass.printValueOn:(Ljava/io/PrintStream;)V
2: new java.lang.StringBuilder
dup
ldc "* "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
0 3 1 k Lsun/jvm/hotspot/oops/Klass;
1 3 2 bos Ljava/io/ByteArrayOutputStream;
MethodParameters:
Name Flags
k
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getKlass:()Lsun/jvm/hotspot/oops/Klass;
astore 1
start local 1 1: aload 1
instanceof sun.jvm.hotspot.oops.InstanceKlass
ifeq 3
2: aload 1
invokevirtual sun.jvm.hotspot.oops.Klass.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.oops.Symbol.asString:()Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
3: StackMap locals: sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 1
instanceof sun.jvm.hotspot.oops.ArrayKlass
ifeq 26
4: aload 1
checkcast sun.jvm.hotspot.oops.ArrayKlass
astore 2
start local 2 5: aload 1
instanceof sun.jvm.hotspot.oops.TypeArrayKlass
ifeq 8
6: aload 2
checkcast sun.jvm.hotspot.oops.TypeArrayKlass
astore 3
start local 3 7: new java.lang.StringBuilder
dup
aload 3
invokevirtual sun.jvm.hotspot.oops.TypeArrayKlass.getElementTypeName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 8: StackMap locals: sun.jvm.hotspot.oops.ArrayKlass
StackMap stack:
aload 1
instanceof sun.jvm.hotspot.oops.ObjArrayKlass
ifeq 26
9: aload 2
checkcast sun.jvm.hotspot.oops.ObjArrayKlass
astore 3
start local 3 10: aload 3
invokevirtual sun.jvm.hotspot.oops.ObjArrayKlass.getBottomKlass:()Lsun/jvm/hotspot/oops/Klass;
astore 4
start local 4 11: aload 3
invokevirtual sun.jvm.hotspot.oops.ObjArrayKlass.getDimension:()J
l2i
istore 5
start local 5 12: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 6
start local 6 13: aload 4
instanceof sun.jvm.hotspot.oops.TypeArrayKlass
ifeq 16
14: aload 6
aload 4
checkcast sun.jvm.hotspot.oops.TypeArrayKlass
invokevirtual sun.jvm.hotspot.oops.TypeArrayKlass.getElementTypeName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
15: goto 20
StackMap locals: sun.jvm.hotspot.oops.ObjectHistogramElement sun.jvm.hotspot.oops.Klass sun.jvm.hotspot.oops.ArrayKlass sun.jvm.hotspot.oops.ObjArrayKlass sun.jvm.hotspot.oops.Klass int java.lang.StringBuffer
StackMap stack:
16: aload 4
instanceof sun.jvm.hotspot.oops.InstanceKlass
ifeq 19
17: aload 6
aload 4
invokevirtual sun.jvm.hotspot.oops.Klass.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.oops.Symbol.asString:()Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
18: goto 20
19: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "should not reach here"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 21: goto 24
22: StackMap locals: int
StackMap stack:
aload 6
ldc "[]"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
23: iinc 7 1
StackMap locals:
StackMap stack:
24: iload 7
iload 5
if_icmplt 22
end local 7 25: aload 6
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 26: StackMap locals: sun.jvm.hotspot.oops.ObjectHistogramElement sun.jvm.hotspot.oops.Klass
StackMap stack:
aload 0
aload 1
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getInternalName:(Lsun/jvm/hotspot/oops/Klass;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
1 27 1 k Lsun/jvm/hotspot/oops/Klass;
5 26 2 ak Lsun/jvm/hotspot/oops/ArrayKlass;
7 8 3 tak Lsun/jvm/hotspot/oops/TypeArrayKlass;
10 26 3 oak Lsun/jvm/hotspot/oops/ObjArrayKlass;
11 26 4 bottom Lsun/jvm/hotspot/oops/Klass;
12 26 5 dim I
13 26 6 buf Ljava/lang/StringBuffer;
21 25 7 i I
public static void titleOn(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Object Histogram:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 0
invokevirtual java.io.PrintStream.println:()V
2: aload 0
ldc "num \t #instances\t#bytes\tClass description"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: aload 0
ldc "--------------------------------------------------------------------------"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 tty Ljava/io/PrintStream;
MethodParameters:
Name Flags
tty
public void printOn(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new java.lang.StringBuilder
dup
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.count:J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.jvm.hotspot.oops.ObjectHistogramElement.size:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "\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
1: aload 1
aload 0
invokevirtual sun.jvm.hotspot.oops.ObjectHistogramElement.getDescription:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
2: aload 1
invokevirtual java.io.PrintStream.println:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/jvm/hotspot/oops/ObjectHistogramElement;
0 4 1 tty Ljava/io/PrintStream;
MethodParameters:
Name Flags
tty
}
SourceFile: "ObjectHistogramElement.java"