public class org.jruby.ext.ffi.AutoPointer extends org.jruby.ext.ffi.Pointer
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.ext.ffi.AutoPointer
  super_class: org.jruby.ext.ffi.Pointer
{
  static final java.lang.String AUTOPTR_CLASS_NAME;
    descriptor: Ljava/lang/String;
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: "AutoPointer"

  private static final java.util.concurrent.ConcurrentMap<org.jruby.ext.ffi.AutoPointer$ReaperGroup, java.lang.Boolean> referenceSet;
    descriptor: Ljava/util/concurrent/ConcurrentMap;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentMap<Lorg/jruby/ext/ffi/AutoPointer$ReaperGroup;Ljava/lang/Boolean;>;

  private static final java.lang.ThreadLocal<java.lang.ref.Reference<org.jruby.ext.ffi.AutoPointer$ReaperGroup>> currentReaper;
    descriptor: Ljava/lang/ThreadLocal;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/lang/ThreadLocal<Ljava/lang/ref/Reference<Lorg/jruby/ext/ffi/AutoPointer$ReaperGroup;>;>;

  private org.jruby.ext.ffi.Pointer pointer;
    descriptor: Lorg/jruby/ext/ffi/Pointer;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object referent;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private volatile transient org.jruby.ext.ffi.AutoPointer$Reaper reaper;
    descriptor: Lorg/jruby/ext/ffi/AutoPointer$Reaper;
    flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 32
            new java.util.concurrent.ConcurrentHashMap
            dup
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
            putstatic org.jruby.ext.ffi.AutoPointer.referenceSet:Ljava/util/concurrent/ConcurrentMap;
         1: .line 33
            new java.lang.ThreadLocal
            dup
            invokespecial java.lang.ThreadLocal.<init>:()V
            putstatic org.jruby.ext.ffi.AutoPointer.currentReaper:Ljava/lang/ThreadLocal;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static org.jruby.RubyClass createAutoPointerClass(org.jruby.Ruby, org.jruby.RubyModule);
    descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // org.jruby.Ruby runtime
        start local 1 // org.jruby.RubyModule module
         0: .line 40
            aload 1 /* module */
            ldc "AutoPointer"
         1: .line 41
            aload 1 /* module */
            ldc "Pointer"
            invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
         2: .line 42
            getstatic org.jruby.util.cli.Options.REIFY_FFI:Lcom/headius/options/Option;
            invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
            checkcast java.lang.Boolean
            invokevirtual java.lang.Boolean.booleanValue:()Z
            ifeq 3
            new org.jruby.ext.ffi.ReifyingAllocator
            dup
            ldc Lorg/jruby/ext/ffi/AutoPointer;
            invokespecial org.jruby.ext.ffi.ReifyingAllocator.<init>:(Ljava/lang/Class;)V
            goto 4
      StackMap locals: org.jruby.Ruby org.jruby.RubyModule
      StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.RubyClass
         3: getstatic org.jruby.ext.ffi.AutoPointer$AutoPointerAllocator.INSTANCE:Lorg/jruby/runtime/ObjectAllocator;
         4: .line 40
      StackMap locals: org.jruby.Ruby org.jruby.RubyModule
      StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.RubyClass org.jruby.runtime.ObjectAllocator
            invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
            astore 2 /* autoptrClass */
        start local 2 // org.jruby.RubyClass autoptrClass
         5: .line 43
            aload 2 /* autoptrClass */
            ldc Lorg/jruby/ext/ffi/AutoPointer;
            invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
         6: .line 44
            aload 2 /* autoptrClass */
            ldc Lorg/jruby/ext/ffi/AutoPointer;
            invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
         7: .line 45
            aload 2 /* autoptrClass */
            ldc Lorg/jruby/ext/ffi/AutoPointer;
            invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
         8: .line 46
            aload 2 /* autoptrClass */
            new org.jruby.ext.ffi.AutoPointer$1
            dup
            invokespecial org.jruby.ext.ffi.AutoPointer$1.<init>:()V
            putfield org.jruby.RubyClass.kindOf:Lorg/jruby/RubyModule$KindOf;
         9: .line 53
            aload 2 /* autoptrClass */
            areturn
        end local 2 // org.jruby.RubyClass autoptrClass
        end local 1 // org.jruby.RubyModule module
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   10     0       runtime  Lorg/jruby/Ruby;
            0   10     1        module  Lorg/jruby/RubyModule;
            5   10     2  autoptrClass  Lorg/jruby/RubyClass;
    MethodParameters:
         Name  Flags
      runtime  
      module   

  public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
    descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.Ruby runtime
        start local 2 // org.jruby.RubyClass klazz
         0: .line 66
            aload 0 /* this */
            aload 1 /* runtime */
            aload 2 /* klazz */
            aload 1 /* runtime */
            invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
            invokevirtual org.jruby.ext.ffi.FFI.getNullMemoryIO:()Lorg/jruby/ext/ffi/NullMemoryIO;
            invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;)V
         1: .line 67
            return
        end local 2 // org.jruby.RubyClass klazz
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/jruby/ext/ffi/AutoPointer;
            0    2     1  runtime  Lorg/jruby/Ruby;
            0    2     2    klazz  Lorg/jruby/RubyClass;
    MethodParameters:
         Name  Flags
      runtime  
      klazz    

  private static final void checkPointer(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.jruby.Ruby runtime
        start local 1 // org.jruby.runtime.builtin.IRubyObject ptr
         0: .line 70
            aload 1 /* ptr */
            instanceof org.jruby.ext.ffi.Pointer
            ifne 2
         1: .line 71
            aload 0 /* runtime */
            aload 1 /* ptr */
            aload 0 /* runtime */
            invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
            getfield org.jruby.ext.ffi.FFI.pointerClass:Lorg/jruby/RubyClass;
            invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
            athrow
         2: .line 73
      StackMap locals:
      StackMap stack:
            aload 1 /* ptr */
            instanceof org.jruby.ext.ffi.MemoryPointer
            ifne 3
            aload 1 /* ptr */
            instanceof org.jruby.ext.ffi.AutoPointer
            ifeq 4
         3: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* runtime */
            ldc "Cannot use AutoPointer with MemoryPointer or AutoPointer instances"
            invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         4: .line 76
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.jruby.runtime.builtin.IRubyObject ptr
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    5     0  runtime  Lorg/jruby/Ruby;
            0    5     1      ptr  Lorg/jruby/runtime/builtin/IRubyObject;
    MethodParameters:
         Name  Flags
      runtime  
      ptr      

  public static org.jruby.runtime.builtin.IRubyObject from_native(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // org.jruby.runtime.ThreadContext context
        start local 1 // org.jruby.runtime.builtin.IRubyObject recv
        start local 2 // org.jruby.runtime.builtin.IRubyObject value
        start local 3 // org.jruby.runtime.builtin.IRubyObject ctx
         0: .line 80
            aload 1 /* recv */
            checkcast org.jruby.RubyClass
            aload 0 /* context */
            aload 2 /* value */
            getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
            invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 3 // org.jruby.runtime.builtin.IRubyObject ctx
        end local 2 // org.jruby.runtime.builtin.IRubyObject value
        end local 1 // org.jruby.runtime.builtin.IRubyObject recv
        end local 0 // org.jruby.runtime.ThreadContext context
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    1     0  context  Lorg/jruby/runtime/ThreadContext;
            0    1     1     recv  Lorg/jruby/runtime/builtin/IRubyObject;
            0    1     2    value  Lorg/jruby/runtime/builtin/IRubyObject;
            0    1     3      ctx  Lorg/jruby/runtime/builtin/IRubyObject;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"from_native"}, meta = true)
    MethodParameters:
         Name  Flags
      context  
      recv     
      value    
      ctx      

  public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=6, locals=7, args_size=3
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // org.jruby.runtime.builtin.IRubyObject pointerArg
         0: .line 87
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            astore 3 /* runtime */
        start local 3 // org.jruby.Ruby runtime
         1: .line 89
            aload 3 /* runtime */
            aload 2 /* pointerArg */
            invokestatic org.jruby.ext.ffi.AutoPointer.checkPointer:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
         2: .line 91
            aload 0 /* this */
            invokevirtual org.jruby.ext.ffi.AutoPointer.getMetaClass:()Lorg/jruby/RubyClass;
            invokevirtual org.jruby.RubyClass.getFFIHandle:()Ljava/lang/Object;
            astore 4 /* ffiHandle */
        start local 4 // java.lang.Object ffiHandle
         3: .line 92
            aload 4 /* ffiHandle */
            instanceof org.jruby.ext.ffi.AutoPointer$ClassData
            ifne 5
         4: .line 93
            aload 0 /* this */
            invokevirtual org.jruby.ext.ffi.AutoPointer.getMetaClass:()Lorg/jruby/RubyClass;
            new org.jruby.ext.ffi.AutoPointer$ClassData
            dup
            invokespecial org.jruby.ext.ffi.AutoPointer$ClassData.<init>:()V
            dup
            astore 4 /* ffiHandle */
            invokevirtual org.jruby.RubyClass.setFFIHandle:(Ljava/lang/Object;)V
         5: .line 95
      StackMap locals: org.jruby.Ruby java.lang.Object
      StackMap stack:
            aload 4 /* ffiHandle */
            checkcast org.jruby.ext.ffi.AutoPointer$ClassData
            astore 5 /* classData */
        start local 5 // org.jruby.ext.ffi.AutoPointer$ClassData classData
         6: .line 98
            aload 5 /* classData */
            getfield org.jruby.ext.ffi.AutoPointer$ClassData.releaseCallSite:Lorg/jruby/runtime/callsite/CachingCallSite;
            aload 0 /* this */
            invokevirtual org.jruby.ext.ffi.AutoPointer.getMetaClass:()Lorg/jruby/RubyClass;
            invokevirtual org.jruby.runtime.callsite.CachingCallSite.retrieveCache:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/callsite/CacheEntry;
            getfield org.jruby.runtime.callsite.CacheEntry.method:Lorg/jruby/internal/runtime/methods/DynamicMethod;
            astore 6 /* releaseMethod */
        start local 6 // org.jruby.internal.runtime.methods.DynamicMethod releaseMethod
         7: .line 99
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.isUndefined:()Z
            ifeq 9
         8: .line 100
            aload 3 /* runtime */
            ldc "release method undefined"
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         9: .line 102
      StackMap locals: org.jruby.ext.ffi.AutoPointer$ClassData org.jruby.internal.runtime.methods.DynamicMethod
      StackMap stack:
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.isFixed:()Z
            ifeq 10
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            iconst_1
            if_icmpne 11
      StackMap locals:
      StackMap stack:
        10: aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            iconst_1
            if_icmple 14
        11: .line 103
      StackMap locals:
      StackMap stack:
            aload 3 /* runtime */
            new java.lang.StringBuilder
            dup
            ldc "wrong number of arguments to release method (1 for "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        12: .line 104
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc ")"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        13: .line 103
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        14: .line 108
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* pointerArg */
            checkcast org.jruby.ext.ffi.Pointer
            invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
            invokevirtual org.jruby.ext.ffi.AutoPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
            pop
        15: .line 109
            aload 0 /* this */
            aload 2 /* pointerArg */
            checkcast org.jruby.ext.ffi.Pointer
            putfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
        16: .line 110
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            getfield org.jruby.ext.ffi.Pointer.size:J
            putfield org.jruby.ext.ffi.AutoPointer.size:J
        17: .line 111
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            getfield org.jruby.ext.ffi.Pointer.typeSize:I
            putfield org.jruby.ext.ffi.AutoPointer.typeSize:I
        18: .line 112
            aload 0 /* this */
            new org.jruby.ext.ffi.AutoPointer$Reaper
            dup
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            aload 0 /* this */
            invokevirtual org.jruby.ext.ffi.AutoPointer.getMetaClass:()Lorg/jruby/RubyClass;
            aload 5 /* classData */
            getfield org.jruby.ext.ffi.AutoPointer$ClassData.releaseCallSite:Lorg/jruby/runtime/callsite/CachingCallSite;
            invokespecial org.jruby.ext.ffi.AutoPointer$Reaper.<init>:(Lorg/jruby/ext/ffi/Pointer;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/callsite/CachingCallSite;)V
            invokevirtual org.jruby.ext.ffi.AutoPointer.setReaper:(Lorg/jruby/ext/ffi/AutoPointer$Reaper;)V
        19: .line 114
            aload 0 /* this */
            areturn
        end local 6 // org.jruby.internal.runtime.methods.DynamicMethod releaseMethod
        end local 5 // org.jruby.ext.ffi.AutoPointer$ClassData classData
        end local 4 // java.lang.Object ffiHandle
        end local 3 // org.jruby.Ruby runtime
        end local 2 // org.jruby.runtime.builtin.IRubyObject pointerArg
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   20     0           this  Lorg/jruby/ext/ffi/AutoPointer;
            0   20     1        context  Lorg/jruby/runtime/ThreadContext;
            0   20     2     pointerArg  Lorg/jruby/runtime/builtin/IRubyObject;
            1   20     3        runtime  Lorg/jruby/Ruby;
            3   20     4      ffiHandle  Ljava/lang/Object;
            6   20     5      classData  Lorg/jruby/ext/ffi/AutoPointer$ClassData;
            7   20     6  releaseMethod  Lorg/jruby/internal/runtime/methods/DynamicMethod;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
    MethodParameters:
            Name  Flags
      context     
      pointerArg  

  public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=6, locals=7, args_size=4
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // org.jruby.runtime.builtin.IRubyObject pointerArg
        start local 3 // org.jruby.runtime.builtin.IRubyObject releaser
         0: .line 121
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            aload 2 /* pointerArg */
            invokestatic org.jruby.ext.ffi.AutoPointer.checkPointer:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
         1: .line 123
            aload 0 /* this */
            aload 2 /* pointerArg */
            checkcast org.jruby.ext.ffi.Pointer
            invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
            invokevirtual org.jruby.ext.ffi.AutoPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
            pop
         2: .line 124
            aload 0 /* this */
            aload 2 /* pointerArg */
            checkcast org.jruby.ext.ffi.Pointer
            putfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
         3: .line 125
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            getfield org.jruby.ext.ffi.Pointer.size:J
            putfield org.jruby.ext.ffi.AutoPointer.size:J
         4: .line 126
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            getfield org.jruby.ext.ffi.Pointer.typeSize:I
            putfield org.jruby.ext.ffi.AutoPointer.typeSize:I
         5: .line 128
            aload 3 /* releaser */
            invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
            invokevirtual org.jruby.RubyClass.getFFIHandleAccessorField:()Lorg/jruby/runtime/ivars/VariableAccessorField;
            invokevirtual org.jruby.runtime.ivars.VariableAccessorField.getVariableAccessorForRead:()Lorg/jruby/runtime/ivars/VariableAccessor;
            aload 3 /* releaser */
            invokevirtual org.jruby.runtime.ivars.VariableAccessor.get:(Ljava/lang/Object;)Ljava/lang/Object;
            astore 4 /* ffiHandle */
        start local 4 // java.lang.Object ffiHandle
         6: .line 129
            aload 4 /* ffiHandle */
            instanceof org.jruby.ext.ffi.AutoPointer$ReleaserData
            ifne 8
         7: .line 130
            aload 0 /* this */
            invokevirtual org.jruby.ext.ffi.AutoPointer.getMetaClass:()Lorg/jruby/RubyClass;
            new org.jruby.ext.ffi.AutoPointer$ReleaserData
            dup
            invokespecial org.jruby.ext.ffi.AutoPointer$ReleaserData.<init>:()V
            dup
            astore 4 /* ffiHandle */
            invokevirtual org.jruby.RubyClass.setFFIHandle:(Ljava/lang/Object;)V
         8: .line 133
      StackMap locals: java.lang.Object
      StackMap stack:
            aload 4 /* ffiHandle */
            checkcast org.jruby.ext.ffi.AutoPointer$ReleaserData
            astore 5 /* releaserData */
        start local 5 // org.jruby.ext.ffi.AutoPointer$ReleaserData releaserData
         9: .line 134
            aload 5 /* releaserData */
            getfield org.jruby.ext.ffi.AutoPointer$ReleaserData.releaseCallSite:Lorg/jruby/runtime/callsite/CachingCallSite;
            aload 3 /* releaser */
            invokevirtual org.jruby.runtime.callsite.CachingCallSite.retrieveCache:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/callsite/CacheEntry;
            getfield org.jruby.runtime.callsite.CacheEntry.method:Lorg/jruby/internal/runtime/methods/DynamicMethod;
            astore 6 /* releaseMethod */
        start local 6 // org.jruby.internal.runtime.methods.DynamicMethod releaseMethod
        10: .line 136
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.isUndefined:()Z
            ifeq 12
        11: .line 137
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "call method undefined"
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        12: .line 139
      StackMap locals: org.jruby.ext.ffi.AutoPointer$ReleaserData org.jruby.internal.runtime.methods.DynamicMethod
      StackMap stack:
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.isFixed:()Z
            ifeq 13
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            iconst_1
            if_icmpne 14
      StackMap locals:
      StackMap stack:
        13: aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            iconst_1
            if_icmple 17
        14: .line 140
      StackMap locals:
      StackMap stack:
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            new java.lang.StringBuilder
            dup
            ldc "wrong number of arguments to call method (1 for "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        15: .line 141
            aload 6 /* releaseMethod */
            invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getArity:()Lorg/jruby/runtime/Arity;
            invokevirtual org.jruby.runtime.Arity.required:()I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc ")"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        16: .line 140
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        17: .line 144
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new org.jruby.ext.ffi.AutoPointer$Reaper
            dup
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.pointer:Lorg/jruby/ext/ffi/Pointer;
            aload 3 /* releaser */
            aload 5 /* releaserData */
            getfield org.jruby.ext.ffi.AutoPointer$ReleaserData.releaseCallSite:Lorg/jruby/runtime/callsite/CachingCallSite;
            invokespecial org.jruby.ext.ffi.AutoPointer$Reaper.<init>:(Lorg/jruby/ext/ffi/Pointer;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/callsite/CachingCallSite;)V
            invokevirtual org.jruby.ext.ffi.AutoPointer.setReaper:(Lorg/jruby/ext/ffi/AutoPointer$Reaper;)V
        18: .line 146
            aload 0 /* this */
            areturn
        end local 6 // org.jruby.internal.runtime.methods.DynamicMethod releaseMethod
        end local 5 // org.jruby.ext.ffi.AutoPointer$ReleaserData releaserData
        end local 4 // java.lang.Object ffiHandle
        end local 3 // org.jruby.runtime.builtin.IRubyObject releaser
        end local 2 // org.jruby.runtime.builtin.IRubyObject pointerArg
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   19     0           this  Lorg/jruby/ext/ffi/AutoPointer;
            0   19     1        context  Lorg/jruby/runtime/ThreadContext;
            0   19     2     pointerArg  Lorg/jruby/runtime/builtin/IRubyObject;
            0   19     3       releaser  Lorg/jruby/runtime/builtin/IRubyObject;
            6   19     4      ffiHandle  Ljava/lang/Object;
            9   19     5   releaserData  Lorg/jruby/ext/ffi/AutoPointer$ReleaserData;
           10   19     6  releaseMethod  Lorg/jruby/internal/runtime/methods/DynamicMethod;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
    MethodParameters:
            Name  Flags
      context     
      pointerArg  
      releaser    

  public final org.jruby.runtime.builtin.IRubyObject free(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 151
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
            astore 2 /* r */
        start local 2 // org.jruby.ext.ffi.AutoPointer$Reaper r
         1: .line 153
            aload 2 /* r */
            ifnull 2
            aload 2 /* r */
            getfield org.jruby.ext.ffi.AutoPointer$Reaper.released:Z
            ifeq 3
         2: .line 154
      StackMap locals: org.jruby.ext.ffi.AutoPointer$Reaper
      StackMap stack:
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "pointer already freed"
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         3: .line 157
      StackMap locals:
      StackMap stack:
            aload 2 /* r */
            aload 1 /* context */
            invokevirtual org.jruby.ext.ffi.AutoPointer$Reaper.release:(Lorg/jruby/runtime/ThreadContext;)V
         4: .line 158
            aload 0 /* this */
            aconst_null
            putfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
         5: .line 159
            aload 0 /* this */
            aconst_null
            putfield org.jruby.ext.ffi.AutoPointer.referent:Ljava/lang/Object;
         6: .line 161
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 2 // org.jruby.ext.ffi.AutoPointer$Reaper r
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    7     0     this  Lorg/jruby/ext/ffi/AutoPointer;
            0    7     1  context  Lorg/jruby/runtime/ThreadContext;
            1    7     2        r  Lorg/jruby/ext/ffi/AutoPointer$Reaper;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"free"})
    MethodParameters:
         Name  Flags
      context  

  public final org.jruby.runtime.builtin.IRubyObject autorelease(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=4, args_size=3
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // org.jruby.runtime.builtin.IRubyObject autorelease
         0: .line 166
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
            astore 3 /* r */
        start local 3 // org.jruby.ext.ffi.AutoPointer$Reaper r
         1: .line 168
            aload 3 /* r */
            ifnull 2
            aload 3 /* r */
            getfield org.jruby.ext.ffi.AutoPointer$Reaper.released:Z
            ifeq 3
         2: .line 169
      StackMap locals: org.jruby.ext.ffi.AutoPointer$Reaper
      StackMap stack:
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "pointer already freed"
            invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         3: .line 172
      StackMap locals:
      StackMap stack:
            aload 3 /* r */
            aload 2 /* autorelease */
            invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
            invokevirtual org.jruby.ext.ffi.AutoPointer$Reaper.autorelease:(Z)V
         4: .line 174
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 3 // org.jruby.ext.ffi.AutoPointer$Reaper r
        end local 2 // org.jruby.runtime.builtin.IRubyObject autorelease
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/jruby/ext/ffi/AutoPointer;
            0    5     1      context  Lorg/jruby/runtime/ThreadContext;
            0    5     2  autorelease  Lorg/jruby/runtime/builtin/IRubyObject;
            1    5     3            r  Lorg/jruby/ext/ffi/AutoPointer$Reaper;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"autorelease="})
    MethodParameters:
             Name  Flags
      context      
      autorelease  

  public final org.jruby.runtime.builtin.IRubyObject autorelease_p(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 179
            aload 1 /* context */
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
            ifnull 2
            aload 0 /* this */
            getfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
            getfield org.jruby.ext.ffi.AutoPointer$Reaper.unmanaged:Z
            ifeq 1
            iconst_0
            goto 3
      StackMap locals:
      StackMap stack: org.jruby.runtime.ThreadContext
         1: iconst_1
            goto 3
      StackMap locals:
      StackMap stack: org.jruby.runtime.ThreadContext
         2: iconst_0
      StackMap locals: org.jruby.ext.ffi.AutoPointer org.jruby.runtime.ThreadContext
      StackMap stack: org.jruby.runtime.ThreadContext int
         3: invokestatic org.jruby.RubyBoolean.newBoolean:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/RubyBoolean;
            areturn
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Lorg/jruby/ext/ffi/AutoPointer;
            0    4     1  context  Lorg/jruby/runtime/ThreadContext;
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyMethod(name = {"autorelease?"})
    MethodParameters:
         Name  Flags
      context  

  private void setReaper(org.jruby.ext.ffi.AutoPointer$Reaper);
    descriptor: (Lorg/jruby/ext/ffi/AutoPointer$Reaper;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // org.jruby.ext.ffi.AutoPointer this
        start local 1 // org.jruby.ext.ffi.AutoPointer$Reaper reaper
         0: .line 183
            getstatic org.jruby.ext.ffi.AutoPointer.currentReaper:Ljava/lang/ThreadLocal;
            invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
            checkcast java.lang.ref.Reference
            astore 2 /* reaperGroupReference */
        start local 2 // java.lang.ref.Reference reaperGroupReference
         1: .line 184
            aload 2 /* reaperGroupReference */
            ifnull 2
            aload 2 /* reaperGroupReference */
            invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
            checkcast org.jruby.ext.ffi.AutoPointer$ReaperGroup
            goto 3
      StackMap locals: java.lang.ref.Reference
      StackMap stack:
         2: aconst_null
      StackMap locals:
      StackMap stack: org.jruby.ext.ffi.AutoPointer$ReaperGroup
         3: astore 3 /* reaperGroup */
        start local 3 // org.jruby.ext.ffi.AutoPointer$ReaperGroup reaperGroup
         4: .line 185
            aload 3 /* reaperGroup */
            ifnull 5
            aload 3 /* reaperGroup */
            invokevirtual org.jruby.ext.ffi.AutoPointer$ReaperGroup.referent:()Ljava/lang/Object;
            goto 6
      StackMap locals: org.jruby.ext.ffi.AutoPointer$ReaperGroup
      StackMap stack:
         5: aconst_null
      StackMap locals:
      StackMap stack: java.lang.Object
         6: astore 4 /* referent */
        start local 4 // java.lang.Object referent
         7: .line 186
            aload 4 /* referent */
            ifnull 8
            aload 3 /* reaperGroup */
            invokevirtual org.jruby.ext.ffi.AutoPointer$ReaperGroup.canAccept:()Z
            ifne 11
         8: .line 187
      StackMap locals: java.lang.Object
      StackMap stack:
            new org.jruby.ext.ffi.AutoPointer$ReaperGroup
            dup
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            dup
            astore 4 /* referent */
            invokespecial org.jruby.ext.ffi.AutoPointer$ReaperGroup.<init>:(Ljava/lang/Object;)V
            astore 3 /* reaperGroup */
         9: .line 188
            getstatic org.jruby.ext.ffi.AutoPointer.currentReaper:Ljava/lang/ThreadLocal;
            new java.lang.ref.SoftReference
            dup
            aload 3 /* reaperGroup */
            invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
            invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
        10: .line 189
            getstatic org.jruby.ext.ffi.AutoPointer.referenceSet:Ljava/util/concurrent/ConcurrentMap;
            aload 3 /* reaperGroup */
            getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
            invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        11: .line 191
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 4 /* referent */
            putfield org.jruby.ext.ffi.AutoPointer.referent:Ljava/lang/Object;
        12: .line 192
            aload 0 /* this */
            aload 1 /* reaper */
            putfield org.jruby.ext.ffi.AutoPointer.reaper:Lorg/jruby/ext/ffi/AutoPointer$Reaper;
        13: .line 193
            aload 3 /* reaperGroup */
            aload 1 /* reaper */
            invokevirtual org.jruby.ext.ffi.AutoPointer$ReaperGroup.add:(Lorg/jruby/ext/ffi/AutoPointer$Reaper;)V
        14: .line 194
            return
        end local 4 // java.lang.Object referent
        end local 3 // org.jruby.ext.ffi.AutoPointer$ReaperGroup reaperGroup
        end local 2 // java.lang.ref.Reference reaperGroupReference
        end local 1 // org.jruby.ext.ffi.AutoPointer$Reaper reaper
        end local 0 // org.jruby.ext.ffi.AutoPointer this
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0   15     0                  this  Lorg/jruby/ext/ffi/AutoPointer;
            0   15     1                reaper  Lorg/jruby/ext/ffi/AutoPointer$Reaper;
            1   15     2  reaperGroupReference  Ljava/lang/ref/Reference<Lorg/jruby/ext/ffi/AutoPointer$ReaperGroup;>;
            4   15     3           reaperGroup  Lorg/jruby/ext/ffi/AutoPointer$ReaperGroup;
            7   15     4              referent  Ljava/lang/Object;
    MethodParameters:
        Name  Flags
      reaper  
}
SourceFile: "AutoPointer.java"
NestMembers:
  org.jruby.ext.ffi.AutoPointer$1  org.jruby.ext.ffi.AutoPointer$AutoPointerAllocator  org.jruby.ext.ffi.AutoPointer$ClassData  org.jruby.ext.ffi.AutoPointer$Reaper  org.jruby.ext.ffi.AutoPointer$ReaperGroup  org.jruby.ext.ffi.AutoPointer$ReleaserData
InnerClasses:
  org.jruby.ext.ffi.AutoPointer$1
  private final AutoPointerAllocator = org.jruby.ext.ffi.AutoPointer$AutoPointerAllocator of org.jruby.ext.ffi.AutoPointer
  private final ClassData = org.jruby.ext.ffi.AutoPointer$ClassData of org.jruby.ext.ffi.AutoPointer
  private final Reaper = org.jruby.ext.ffi.AutoPointer$Reaper of org.jruby.ext.ffi.AutoPointer
  private final ReaperGroup = org.jruby.ext.ffi.AutoPointer$ReaperGroup of org.jruby.ext.ffi.AutoPointer
  private final ReleaserData = org.jruby.ext.ffi.AutoPointer$ReleaserData of org.jruby.ext.ffi.AutoPointer
    RuntimeVisibleAnnotations: 
      org.jruby.anno.JRubyClass(name = {"FFI::AutoPointer"}, parent = "FFI::Pointer")