class org.jruby.ext.ffi.ReifyingAllocator implements org.jruby.runtime.ObjectAllocator
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.jruby.ext.ffi.ReifyingAllocator
  super_class: java.lang.Object
{
  private final java.lang.Class klass;
    descriptor: Ljava/lang/Class;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.lang.reflect.Constructor cons;
    descriptor: Ljava/lang/reflect/Constructor;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(java.lang.Class);
    descriptor: (Ljava/lang/Class;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // org.jruby.ext.ffi.ReifyingAllocator this
        start local 1 // java.lang.Class klass
         0: .line 16
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 17
            aload 0 /* this */
            aload 1 /* klass */
            putfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
         2: .line 19
            aload 0 /* this */
            aload 1 /* klass */
            iconst_2
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Lorg/jruby/Ruby;
            aastore
            dup
            iconst_1
            ldc Lorg/jruby/RubyClass;
            aastore
            invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
            putfield org.jruby.ext.ffi.ReifyingAllocator.cons:Ljava/lang/reflect/Constructor;
         3: .line 20
            goto 6
      StackMap locals: org.jruby.ext.ffi.ReifyingAllocator java.lang.Class
      StackMap stack: java.lang.NoSuchMethodException
         4: astore 2 /* nsme */
        start local 2 // java.lang.NoSuchMethodException nsme
         5: .line 21
            new java.lang.RuntimeException
            dup
            aload 2 /* nsme */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.NoSuchMethodException nsme
         6: .line 23
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Class klass
        end local 0 // org.jruby.ext.ffi.ReifyingAllocator this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Lorg/jruby/ext/ffi/ReifyingAllocator;
            0    7     1  klass  Ljava/lang/Class;
            5    6     2   nsme  Ljava/lang/NoSuchMethodException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.lang.NoSuchMethodException
    MethodParameters:
       Name  Flags
      klass  

  public org.jruby.runtime.builtin.IRubyObject allocate(org.jruby.Ruby, org.jruby.RubyClass);
    descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // org.jruby.ext.ffi.ReifyingAllocator this
        start local 1 // org.jruby.Ruby runtime
        start local 2 // org.jruby.RubyClass klazz
         0: .line 27
            aload 2 /* klazz */
            invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
            aload 0 /* this */
            getfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
            if_acmpne 3
         1: .line 28
            aload 0 /* this */
            getfield org.jruby.ext.ffi.ReifyingAllocator.cons:Ljava/lang/reflect/Constructor;
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* runtime */
            aastore
            dup
            iconst_1
            aload 2 /* klazz */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.jruby.runtime.builtin.IRubyObject
         2: areturn
         3: .line 31
      StackMap locals:
      StackMap stack:
            aload 2 /* klazz */
            invokestatic org.jruby.ext.ffi.ReifyingAllocator.reifyWithAncestors:(Lorg/jruby/RubyClass;)V
         4: .line 32
            aload 2 /* klazz */
            invokevirtual org.jruby.RubyClass.getAllocator:()Lorg/jruby/runtime/ObjectAllocator;
            aload 1 /* runtime */
            aload 2 /* klazz */
            invokeinterface org.jruby.runtime.ObjectAllocator.allocate:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
         5: areturn
         6: .line 34
      StackMap locals:
      StackMap stack: java.lang.InstantiationException
            astore 3 /* ie */
        start local 3 // java.lang.InstantiationException ie
         7: .line 35
            aload 1 /* runtime */
            new java.lang.StringBuilder
            dup
            ldc "could not allocate "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " with default constructor:\n"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 3 /* ie */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        end local 3 // java.lang.InstantiationException ie
         8: .line 36
      StackMap locals:
      StackMap stack: java.lang.IllegalAccessException
            astore 3 /* iae */
        start local 3 // java.lang.IllegalAccessException iae
         9: .line 37
            aload 1 /* runtime */
            new java.lang.StringBuilder
            dup
            ldc "could not allocate "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " due to inaccessible default constructor:\n"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 3 /* iae */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.jruby.Ruby.newSecurityError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        end local 3 // java.lang.IllegalAccessException iae
        10: .line 38
      StackMap locals:
      StackMap stack: java.lang.reflect.InvocationTargetException
            astore 3 /* ite */
        start local 3 // java.lang.reflect.InvocationTargetException ite
        11: .line 39
            aload 1 /* runtime */
            new java.lang.StringBuilder
            dup
            ldc "could not allocate "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " due to inaccessible default constructor:\n"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 3 /* ite */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.jruby.Ruby.newSecurityError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        end local 3 // java.lang.reflect.InvocationTargetException ite
        end local 2 // org.jruby.RubyClass klazz
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.ext.ffi.ReifyingAllocator this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lorg/jruby/ext/ffi/ReifyingAllocator;
            0   12     1  runtime  Lorg/jruby/Ruby;
            0   12     2    klazz  Lorg/jruby/RubyClass;
            7    8     3       ie  Ljava/lang/InstantiationException;
            9   10     3      iae  Ljava/lang/IllegalAccessException;
           11   12     3      ite  Ljava/lang/reflect/InvocationTargetException;
      Exception table:
        from    to  target  type
           0     2       6  Class java.lang.InstantiationException
           3     5       6  Class java.lang.InstantiationException
           0     2       8  Class java.lang.IllegalAccessException
           3     5       8  Class java.lang.IllegalAccessException
           0     2      10  Class java.lang.reflect.InvocationTargetException
           3     5      10  Class java.lang.reflect.InvocationTargetException
    MethodParameters:
         Name  Flags
      runtime  
      klazz    

  private static void reifyWithAncestors(org.jruby.RubyClass);
    descriptor: (Lorg/jruby/RubyClass;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // org.jruby.RubyClass klazz
         0: .line 45
            aload 0 /* klazz */
            invokevirtual org.jruby.RubyClass.getSuperClass:()Lorg/jruby/RubyClass;
            invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
            astore 1 /* realSuper */
        start local 1 // org.jruby.RubyClass realSuper
         1: .line 47
            aload 1 /* realSuper */
            invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
            ifnonnull 2
            aload 1 /* realSuper */
            invokestatic org.jruby.ext.ffi.ReifyingAllocator.reifyWithAncestors:(Lorg/jruby/RubyClass;)V
         2: .line 48
      StackMap locals: org.jruby.RubyClass
      StackMap stack:
            aload 0 /* klazz */
            dup
            astore 2
            monitorenter
         3: .line 49
            aload 0 /* klazz */
            invokevirtual org.jruby.RubyClass.reify:()V
         4: .line 50
            aload 0 /* klazz */
            new org.jruby.ext.ffi.ReifyingAllocator
            dup
            aload 0 /* klazz */
            invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
            invokespecial org.jruby.ext.ffi.ReifyingAllocator.<init>:(Ljava/lang/Class;)V
            invokevirtual org.jruby.RubyClass.setAllocator:(Lorg/jruby/runtime/ObjectAllocator;)V
         5: .line 48
            aload 2
            monitorexit
         6: goto 9
      StackMap locals: org.jruby.RubyClass org.jruby.RubyClass org.jruby.RubyClass
      StackMap stack: java.lang.Throwable
         7: aload 2
            monitorexit
         8: athrow
         9: .line 52
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.jruby.RubyClass realSuper
        end local 0 // org.jruby.RubyClass klazz
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   10     0      klazz  Lorg/jruby/RubyClass;
            1   10     1  realSuper  Lorg/jruby/RubyClass;
      Exception table:
        from    to  target  type
           3     6       7  any
           7     8       7  any
    MethodParameters:
       Name  Flags
      klazz  
}
SourceFile: "ReifyingAllocator.java"