public class org.jruby.FlagRegistry
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.FlagRegistry
  super_class: java.lang.Object
{
  private final java.util.Map<java.lang.Class, java.lang.Integer> currentShift;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Class;Ljava/lang/Integer;>;

  private final java.util.Map<java.lang.Class, java.util.BitSet> registry;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Class;Ljava/util/BitSet;>;

  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: .line 18
            ldc Lorg/jruby/FlagRegistry;
            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 org.jruby.FlagRegistry.$assertionsDisabled:Z
            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 // org.jruby.FlagRegistry this
         0: .line 18
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 19
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
         2: .line 20
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
         3: .line 18
            return
        end local 0 // org.jruby.FlagRegistry this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/jruby/FlagRegistry;

  public synchronized int newFlag(java.lang.Class);
    descriptor: (Ljava/lang/Class;)I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // org.jruby.FlagRegistry this
        start local 1 // java.lang.Class klass
         0: .line 34
            aload 1 /* klass */
            astore 2 /* currentKlass */
        start local 2 // java.lang.Class currentKlass
         1: .line 35
            aconst_null
            astore 3 /* shift */
        start local 3 // java.lang.Integer shift
         2: .line 36
            goto 4
         3: .line 38
      StackMap locals: java.lang.Class java.lang.Integer
      StackMap stack:
            aload 2 /* currentKlass */
            invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
            astore 2 /* currentKlass */
         4: .line 36
      StackMap locals:
      StackMap stack:
            aload 2 /* currentKlass */
            ifnull 6
         5: .line 37
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
            aload 2 /* currentKlass */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            dup
            astore 3 /* shift */
            ifnull 3
         6: .line 40
      StackMap locals:
      StackMap stack:
            aload 3 /* shift */
            ifnonnull 7
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            astore 3 /* shift */
         7: .line 42
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
            aload 1 /* klass */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.BitSet
            astore 4 /* flags */
        start local 4 // java.util.BitSet flags
         8: .line 43
            aload 4 /* flags */
            ifnonnull 11
         9: .line 44
            new java.util.BitSet
            dup
            invokespecial java.util.BitSet.<init>:()V
            astore 4 /* flags */
        10: .line 45
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
            aload 1 /* klass */
            aload 4 /* flags */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        11: .line 47
      StackMap locals: java.util.BitSet
      StackMap stack:
            aload 4 /* flags */
            aload 3 /* shift */
            invokevirtual java.lang.Integer.intValue:()I
            invokevirtual java.util.BitSet.set:(I)V
        12: .line 49
            getstatic org.jruby.FlagRegistry.$assertionsDisabled:Z
            ifne 13
            aload 0 /* this */
            aload 1 /* klass */
            aload 3 /* shift */
            invokevirtual java.lang.Integer.intValue:()I
            invokevirtual org.jruby.FlagRegistry.flagsAreValid:(Ljava/lang/Class;I)Z
            ifne 13
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        13: .line 51
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
            aload 1 /* klass */
            aload 3 /* shift */
            invokevirtual java.lang.Integer.intValue:()I
            iconst_1
            iadd
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        14: .line 53
            iconst_1
            aload 3 /* shift */
            dup
            invokevirtual java.lang.Integer.intValue:()I
            iconst_1
            iadd
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            astore 3 /* shift */
            invokevirtual java.lang.Integer.intValue:()I
            ishl
            ireturn
        end local 4 // java.util.BitSet flags
        end local 3 // java.lang.Integer shift
        end local 2 // java.lang.Class currentKlass
        end local 1 // java.lang.Class klass
        end local 0 // org.jruby.FlagRegistry this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   15     0          this  Lorg/jruby/FlagRegistry;
            0   15     1         klass  Ljava/lang/Class;
            1   15     2  currentKlass  Ljava/lang/Class;
            2   15     3         shift  Ljava/lang/Integer;
            8   15     4         flags  Ljava/util/BitSet;
    MethodParameters:
       Name  Flags
      klass  

  public synchronized void printFlags();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.FlagRegistry this
         0: .line 57
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
         1: .line 58
            return
        end local 0 // org.jruby.FlagRegistry this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/FlagRegistry;

  private boolean flagsAreValid(java.lang.Class, int);
    descriptor: (Ljava/lang/Class;I)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=6, args_size=3
        start local 0 // org.jruby.FlagRegistry this
        start local 1 // java.lang.Class klass
        start local 2 // int bitIndex
         0: .line 61
            new java.util.BitSet
            dup
            invokespecial java.util.BitSet.<init>:()V
            astore 3 /* gathered */
        start local 3 // java.util.BitSet gathered
         1: .line 62
            aload 1 /* klass */
            astore 4 /* currentKlass */
        start local 4 // java.lang.Class currentKlass
         2: .line 63
            goto 9
         3: .line 64
      StackMap locals: java.util.BitSet java.lang.Class
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
            aload 1 /* klass */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.BitSet
            astore 5 /* flags */
        start local 5 // java.util.BitSet flags
         4: .line 65
            aload 5 /* flags */
            ifnull 8
         5: .line 66
            aload 5 /* flags */
            aload 3 /* gathered */
            invokevirtual java.util.BitSet.intersects:(Ljava/util/BitSet;)Z
            ifeq 7
         6: .line 67
            new java.lang.AssertionError
            dup
            new java.lang.StringBuilder
            dup
            aload 1 /* klass */
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " uses flag "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            iload 2 /* bitIndex */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " that overlaps with "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 4 /* currentKlass */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
         7: .line 69
      StackMap locals: java.util.BitSet
      StackMap stack:
            aload 3 /* gathered */
            aload 5 /* flags */
            invokevirtual java.util.BitSet.and:(Ljava/util/BitSet;)V
         8: .line 71
      StackMap locals:
      StackMap stack:
            aload 4 /* currentKlass */
            invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
            astore 4 /* currentKlass */
        end local 5 // java.util.BitSet flags
         9: .line 63
      StackMap locals:
      StackMap stack:
            aload 4 /* currentKlass */
            ifnonnull 3
        10: .line 73
            iconst_1
            ireturn
        end local 4 // java.lang.Class currentKlass
        end local 3 // java.util.BitSet gathered
        end local 2 // int bitIndex
        end local 1 // java.lang.Class klass
        end local 0 // org.jruby.FlagRegistry this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   11     0          this  Lorg/jruby/FlagRegistry;
            0   11     1         klass  Ljava/lang/Class;
            0   11     2      bitIndex  I
            1   11     3      gathered  Ljava/util/BitSet;
            2   11     4  currentKlass  Ljava/lang/Class;
            4    9     5         flags  Ljava/util/BitSet;
    MethodParameters:
          Name  Flags
      klass     
      bitIndex  
}
SourceFile: "FlagRegistry.java"