class org.graalvm.compiler.hotspot.CompilationCounters
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.CompilationCounters
super_class: java.lang.Object
{
private final java.util.Map<jdk.vm.ci.meta.ResolvedJavaMethod, java.lang.Integer> counters;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Integer;>;
void <init>();
descriptor: ()V
flags: (0x0000)
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 org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
2: ldc "Warning: Compilation counters enabled, excessive recompilation of a method will cause a failure!"
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/CompilationCounters;
synchronized void countCompilation(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
goto 3
StackMap locals: java.lang.Integer
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
4: aload 0
getfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 2
invokevirtual java.lang.Integer.intValue:()I
getstatic org.graalvm.compiler.hotspot.CompilationCounters$Options.CompilationCountLimit:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
if_icmple 22
6: ldc "Error. Method %s was compiled too many times. Number of compilations: %d\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
dup
iconst_1
7: getstatic org.graalvm.compiler.hotspot.CompilationCounters$Options.CompilationCountLimit:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
aastore
8: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
9: ldc "==================================== High compilation counters ===================================="
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
10: new java.util.TreeSet
dup
new org.graalvm.compiler.hotspot.CompilationCounters$CounterComparator
dup
invokespecial org.graalvm.compiler.hotspot.CompilationCounters$CounterComparator.<init>:()V
invokespecial java.util.TreeSet.<init>:(Ljava/util/Comparator;)V
astore 3
start local 3 11: aload 0
getfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.graalvm.compiler.hotspot.CompilationCounters jdk.vm.ci.meta.ResolvedJavaMethod java.lang.Integer java.util.SortedSet top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 13: aload 3
aload 4
invokeinterface java.util.SortedSet.add:(Ljava/lang/Object;)Z
pop
end local 4 14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: aload 3
invokeinterface java.util.SortedSet.iterator:()Ljava/util/Iterator;
astore 5
goto 19
StackMap locals:
StackMap stack:
16: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 17: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
getstatic org.graalvm.compiler.hotspot.CompilationCounters$Options.CompilationCountLimit:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_2
idiv
if_icmplt 19
18: getstatic org.graalvm.compiler.debug.TTY.out:Ljava/io/PrintStream;
ldc "%d\t%s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aastore
dup
iconst_1
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast jdk.vm.ci.meta.JavaMethod
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.str:(Ljdk/vm/ci/meta/JavaMethod;)Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 4 19: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
20: invokestatic org.graalvm.compiler.debug.TTY.flush:()V
21: iconst_m1
invokestatic java.lang.System.exit:(I)V
end local 3 22: StackMap locals: org.graalvm.compiler.hotspot.CompilationCounters jdk.vm.ci.meta.ResolvedJavaMethod java.lang.Integer
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/graalvm/compiler/hotspot/CompilationCounters;
0 23 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
1 23 2 val Ljava/lang/Integer;
11 22 3 sortedCounters Ljava/util/SortedSet<Ljava/util/Map$Entry<Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Integer;>;>;
13 14 4 e Ljava/util/Map$Entry<Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Integer;>;
17 19 4 entry Ljava/util/Map$Entry<Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Integer;>;
MethodParameters:
Name Flags
method
}
SourceFile: "CompilationCounters.java"
NestMembers:
org.graalvm.compiler.hotspot.CompilationCounters$CounterComparator org.graalvm.compiler.hotspot.CompilationCounters$Options
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
final CounterComparator = org.graalvm.compiler.hotspot.CompilationCounters$CounterComparator of org.graalvm.compiler.hotspot.CompilationCounters
public Options = org.graalvm.compiler.hotspot.CompilationCounters$Options of org.graalvm.compiler.hotspot.CompilationCounters