public class com.oracle.svm.hosted.image.HeapHistogram
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.image.HeapHistogram
super_class: java.lang.Object
{
protected static boolean PrintStrings;
descriptor: Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
private final java.util.Map<com.oracle.svm.hosted.meta.HostedClass, com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry> data;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lcom/oracle/svm/hosted/meta/HostedClass;Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;>;
private static final java.util.Comparator<com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry> SIZE_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;>;
private final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: "%8s %8s %6s %6s %s\n"
private final java.lang.String entryFormat;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: "%8d %8d %6.2f%% %6.2f%% %s\n"
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 Lcom/oracle/svm/hosted/image/HeapHistogram;
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 com.oracle.svm.hosted.image.HeapHistogram.$assertionsDisabled:Z
3: iconst_0
putstatic com.oracle.svm.hosted.image.HeapHistogram.PrintStrings:Z
4: invokedynamic compare()Ljava/util/Comparator;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)I
com/oracle/svm/hosted/image/HeapHistogram.lambda$0(Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;)I (6)
(Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;)I
putstatic com.oracle.svm.hosted.image.HeapHistogram.SIZE_COMPARATOR:Ljava/util/Comparator;
5: 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 java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
2: aload 0
ldc "%8s %8s %6s %6s %s\n"
putfield com.oracle.svm.hosted.image.HeapHistogram.headerFormat:Ljava/lang/String;
3: aload 0
ldc "%8d %8d %6.2f%% %6.2f%% %s\n"
putfield com.oracle.svm.hosted.image.HeapHistogram.entryFormat:Ljava/lang/String;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
public void add(com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo, long);
descriptor: (Lcom/oracle/svm/hosted/image/NativeImageHeap$ObjectInfo;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.oracle.svm.hosted.image.HeapHistogram.$assertionsDisabled:Z
ifne 1
getstatic com.oracle.svm.hosted.NativeImageOptions.PrintHeapHistogram:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
aload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.getClazz:()Lcom/oracle/svm/hosted/meta/HostedClass;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
astore 4
start local 4 2: aload 4
ifnonnull 5
3: new com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
dup
aload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.getClazz:()Lcom/oracle/svm/hosted/meta/HostedClass;
invokespecial com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.<init>:(Lcom/oracle/svm/hosted/meta/HostedClass;)V
astore 4
4: aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
aload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.getClazz:()Lcom/oracle/svm/hosted/meta/HostedClass;
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
StackMap stack:
aload 4
dup
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
lconst_1
ladd
putfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
6: aload 4
dup
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
lload 2
ladd
putfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
7: getstatic com.oracle.svm.hosted.image.HeapHistogram.PrintStrings:Z
ifeq 12
aload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.getObject:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 12
8: aload 1
getfield com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.reason:Ljava/lang/Object;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 9: aload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo.getObject:()Ljava/lang/Object;
checkcast java.lang.String
ldc "\n"
ldc ""
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 6
start local 6 10: aload 5
ldc "com.oracle.svm.core.hub.DynamicHub"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 12
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%120s ::: %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
dup
iconst_1
aload 5
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 6 end local 5 12: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
0 13 1 objectInfo Lcom/oracle/svm/hosted/image/NativeImageHeap$ObjectInfo;
0 13 2 size J
2 13 4 entry Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
9 12 5 reason Ljava/lang/String;
10 12 6 value Ljava/lang/String;
MethodParameters:
Name Flags
objectInfo
size
public void printHeadings(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.oracle.svm.hosted.image.HeapHistogram.$assertionsDisabled:Z
ifne 1
getstatic com.oracle.svm.hosted.NativeImageOptions.PrintHeapHistogram:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "\n%s\n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%8s %8s %6s %6s %s\n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
ldc "Count"
aastore
dup
iconst_1
ldc "Size"
aastore
dup
iconst_2
ldc "Size%"
aastore
dup
iconst_3
ldc "Cum%"
aastore
dup
iconst_4
ldc "Class"
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
0 4 1 title Ljava/lang/String;
MethodParameters:
Name Flags
title final
public void print();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=10, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.image.HeapHistogram.$assertionsDisabled:Z
ifne 1
getstatic com.oracle.svm.hosted.NativeImageOptions.PrintHeapHistogram:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
anewarray com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry[]
astore 1
start local 1 2: aload 1
getstatic com.oracle.svm.hosted.image.HeapHistogram.SIZE_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
3: aload 0
invokevirtual com.oracle.svm.hosted.image.HeapHistogram.getTotalSize:()J
lstore 2
start local 2 4: lconst_0
lstore 4
start local 4 5: aload 1
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 10
StackMap locals: com.oracle.svm.hosted.image.HeapHistogram com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry[] long long top int int com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry[]
StackMap stack:
6: aload 9
iload 7
aaload
astore 6
start local 6 7: lload 4
aload 6
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
ladd
lstore 4
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%8d %8d %6.2f%% %6.2f%% %s\n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
aload 6
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 6
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
aload 6
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
l2d
ldc 100.0
dmul
lload 2
l2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
lload 4
l2d
ldc 100.0
dmul
lload 2
l2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_4
aload 6
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.clazz:Lcom/oracle/svm/hosted/meta/HostedClass;
invokevirtual com.oracle.svm.hosted.meta.HostedClass.toJavaName:()Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 6 9: iinc 7 1
StackMap locals:
StackMap stack:
10: iload 7
iload 8
if_icmplt 6
11: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
2 12 1 entries [Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
4 12 2 totalSize J
5 12 4 printedSize J
7 9 6 entry Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
public long getTotalSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: com.oracle.svm.hosted.image.HeapHistogram long top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
astore 3
start local 3 3: lload 1
aload 3
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
ladd
lstore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
1 6 1 totalSize J
3 4 3 entry Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
public long getTotalCount();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram.data:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: com.oracle.svm.hosted.image.HeapHistogram long top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
astore 3
start local 3 3: lload 1
aload 3
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
ladd
lstore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/hosted/image/HeapHistogram;
1 6 1 totalCount J
3 4 3 entry Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
private static int lambda$0(com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry, com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry);
descriptor: (Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.size:J
invokestatic java.lang.Long.compare:(JJ)I
istore 2
start local 2 1: iload 2
ifne 3
2: aload 1
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.count:J
invokestatic java.lang.Long.compare:(JJ)I
istore 2
3: StackMap locals: int
StackMap stack:
iload 2
ifne 5
4: aload 1
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.clazz:Lcom/oracle/svm/hosted/meta/HostedClass;
invokevirtual com.oracle.svm.hosted.meta.HostedClass.getName:()Ljava/lang/String;
aload 0
getfield com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry.clazz:Lcom/oracle/svm/hosted/meta/HostedClass;
invokevirtual com.oracle.svm.hosted.meta.HostedClass.getName:()Ljava/lang/String;
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 o1 Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
0 6 1 o2 Lcom/oracle/svm/hosted/image/HeapHistogram$HistogramEntry;
1 6 2 result I
}
SourceFile: "HeapHistogram.java"
NestMembers:
com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry
InnerClasses:
HistogramEntry = com.oracle.svm.hosted.image.HeapHistogram$HistogramEntry of com.oracle.svm.hosted.image.HeapHistogram
public final ObjectInfo = com.oracle.svm.hosted.image.NativeImageHeap$ObjectInfo of com.oracle.svm.hosted.image.NativeImageHeap
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles