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 // org.graalvm.compiler.hotspot.CompilationCounters this
         0: .line 54
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 58
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
         2: .line 55
            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: .line 56
            return
        end local 0 // org.graalvm.compiler.hotspot.CompilationCounters this
      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 // org.graalvm.compiler.hotspot.CompilationCounters this
        start local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
         0: .line 68
            aload 0 /* this */
            getfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
            aload 1 /* method */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 2 /* val */
        start local 2 // java.lang.Integer val
         1: .line 69
            aload 2 /* val */
            ifnull 2
            aload 2 /* val */
            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 /* val */
         4: .line 70
            aload 0 /* this */
            getfield org.graalvm.compiler.hotspot.CompilationCounters.counters:Ljava/util/Map;
            aload 1 /* method */
            aload 2 /* val */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         5: .line 71
            aload 2 /* val */
            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: .line 72
            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 /* method */
            invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
            aastore
            dup
            iconst_1
         7: .line 73
            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: .line 72
            invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
         9: .line 74
            ldc "==================================== High compilation counters ===================================="
            invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
        10: .line 75
            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 /* sortedCounters */
        start local 3 // java.util.SortedSet sortedCounters
        11: .line 76
            aload 0 /* this */
            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 /* e */
        start local 4 // java.util.Map$Entry e
        13: .line 77
            aload 3 /* sortedCounters */
            aload 4 /* e */
            invokeinterface java.util.SortedSet.add:(Ljava/lang/Object;)Z
            pop
        end local 4 // java.util.Map$Entry e
        14: .line 76
      StackMap locals:
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 12
        15: .line 79
            aload 3 /* sortedCounters */
            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 /* entry */
        start local 4 // java.util.Map$Entry entry
        17: .line 80
            aload 4 /* entry */
            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: .line 81
            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 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            aastore
            dup
            iconst_1
            aload 4 /* entry */
            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 // java.util.Map$Entry entry
        19: .line 79
      StackMap locals:
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 16
        20: .line 84
            invokestatic org.graalvm.compiler.debug.TTY.flush:()V
        21: .line 85
            iconst_m1
            invokestatic java.lang.System.exit:(I)V
        end local 3 // java.util.SortedSet sortedCounters
        22: .line 87
      StackMap locals: org.graalvm.compiler.hotspot.CompilationCounters jdk.vm.ci.meta.ResolvedJavaMethod java.lang.Integer
      StackMap stack:
            return
        end local 2 // java.lang.Integer val
        end local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
        end local 0 // org.graalvm.compiler.hotspot.CompilationCounters this
      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