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 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
2: aload 0
aload 1
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: goto 6
StackMap locals: org.jruby.ext.ffi.ReifyingAllocator java.lang.Class
StackMap stack: java.lang.NoSuchMethodException
4: astore 2
start local 2 5: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
aload 0
getfield org.jruby.ext.ffi.ReifyingAllocator.klass:Ljava/lang/Class;
if_acmpne 3
1: aload 0
getfield org.jruby.ext.ffi.ReifyingAllocator.cons:Ljava/lang/reflect/Constructor;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
2: areturn
3: StackMap locals:
StackMap stack:
aload 2
invokestatic org.jruby.ext.ffi.ReifyingAllocator.reifyWithAncestors:(Lorg/jruby/RubyClass;)V
4: aload 2
invokevirtual org.jruby.RubyClass.getAllocator:()Lorg/jruby/runtime/ObjectAllocator;
aload 1
aload 2
invokeinterface org.jruby.runtime.ObjectAllocator.allocate:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
5: areturn
6: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3
start local 3 7: aload 1
new java.lang.StringBuilder
dup
ldc "could not allocate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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 8: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 3
start local 3 9: aload 1
new java.lang.StringBuilder
dup
ldc "could not allocate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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 10: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 3
start local 3 11: aload 1
new java.lang.StringBuilder
dup
ldc "could not allocate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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 end local 2 end local 1 end local 0 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 0: aload 0
invokevirtual org.jruby.RubyClass.getSuperClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
ifnonnull 2
aload 1
invokestatic org.jruby.ext.ffi.ReifyingAllocator.reifyWithAncestors:(Lorg/jruby/RubyClass;)V
2: StackMap locals: org.jruby.RubyClass
StackMap stack:
aload 0
dup
astore 2
monitorenter
3: aload 0
invokevirtual org.jruby.RubyClass.reify:()V
4: aload 0
new org.jruby.ext.ffi.ReifyingAllocator
dup
aload 0
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: 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: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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"