public class org.jruby.ext.ffi.MemoryPointer 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.MemoryPointer
super_class: org.jruby.ext.ffi.Pointer
{
public static org.jruby.RubyClass createMemoryPointerClass(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 start local 1 0: aload 1
ldc "MemoryPointer"
1: aload 1
ldc "Pointer"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
2: 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/MemoryPointer;
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.MemoryPointer$MemoryPointerAllocator.INSTANCE:Lorg/jruby/runtime/ObjectAllocator;
4: 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
start local 2 5: aload 2
ldc Lorg/jruby/ext/ffi/MemoryPointer;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
6: aload 2
ldc Lorg/jruby/ext/ffi/MemoryPointer;
invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
7: aload 2
ldc Lorg/jruby/ext/ffi/MemoryPointer;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
8: aload 2
new org.jruby.ext.ffi.MemoryPointer$1
dup
invokespecial org.jruby.ext.ffi.MemoryPointer$1.<init>:()V
putfield org.jruby.RubyClass.kindOf:Lorg/jruby/RubyModule$KindOf;
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 runtime Lorg/jruby/Ruby;
0 10 1 module Lorg/jruby/RubyModule;
5 10 2 memptrClass 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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klass
private void <init>(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject, org.jruby.ext.ffi.MemoryIO, long, int);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 0: aload 0
aload 1
aload 2
checkcast org.jruby.RubyClass
aload 3
lload 4
iload 6
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
1: return
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 io Lorg/jruby/ext/ffi/MemoryIO;
0 2 4 total J
0 2 6 typeSize I
MethodParameters:
Name Flags
runtime
klass
io
total
typeSize
private final org.jruby.runtime.builtin.IRubyObject init(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, int, int, boolean, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IIZLorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=7, locals=9, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
invokestatic org.jruby.ext.ffi.MemoryPointer.calculateTypeSize:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
putfield org.jruby.ext.ffi.MemoryPointer.typeSize:I
1: aload 0
aload 0
getfield org.jruby.ext.ffi.MemoryPointer.typeSize:I
iload 3
imul
i2l
putfield org.jruby.ext.ffi.MemoryPointer.size:J
2: aload 0
getfield org.jruby.ext.ffi.MemoryPointer.size:J
lconst_0
lcmp
ifge 4
3: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Negative size (%d objects of %d size)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.jruby.ext.ffi.MemoryPointer.typeSize:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
5: aload 0
getfield org.jruby.ext.ffi.MemoryPointer.size:J
lconst_0
lcmp
ifle 6
aload 0
getfield org.jruby.ext.ffi.MemoryPointer.size:J
l2i
goto 7
StackMap locals: org.jruby.ext.ffi.MemoryPointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int int org.jruby.runtime.Block
StackMap stack: org.jruby.ext.ffi.MemoryPointer org.jruby.ext.ffi.Factory org.jruby.Ruby
6: iconst_1
StackMap locals: org.jruby.ext.ffi.MemoryPointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int int org.jruby.runtime.Block
StackMap stack: org.jruby.ext.ffi.MemoryPointer org.jruby.ext.ffi.Factory org.jruby.Ruby int
7: iload 4
iload 5
8: invokevirtual org.jruby.ext.ffi.Factory.allocateDirectMemory:(Lorg/jruby/Ruby;IIZ)Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
9: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
ifnonnull 14
10: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 7
start local 7 11: aload 7
aload 7
invokevirtual org.jruby.Ruby.getNoMemoryError:()Lorg/jruby/RubyClass;
12: ldc "Failed to allocate %d objects of %d bytes"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.jruby.ext.ffi.MemoryPointer.typeSize:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
13: invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 14: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 23
15: aload 6
aload 1
aload 0
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 8
16: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
checkcast org.jruby.ext.ffi.AllocatedDirectMemoryIO
invokeinterface org.jruby.ext.ffi.AllocatedDirectMemoryIO.free:()V
17: aload 0
new org.jruby.ext.ffi.FreedMemoryIO
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokespecial org.jruby.ext.ffi.FreedMemoryIO.<init>:(Lorg/jruby/Ruby;)V
invokevirtual org.jruby.ext.ffi.MemoryPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
18: aload 8
areturn
19: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
20: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
checkcast org.jruby.ext.ffi.AllocatedDirectMemoryIO
invokeinterface org.jruby.ext.ffi.AllocatedDirectMemoryIO.free:()V
21: aload 0
new org.jruby.ext.ffi.FreedMemoryIO
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokespecial org.jruby.ext.ffi.FreedMemoryIO.<init>:(Lorg/jruby/Ruby;)V
invokevirtual org.jruby.ext.ffi.MemoryPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
22: aload 7
athrow
23: StackMap locals:
StackMap stack:
aload 0
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 24 1 context Lorg/jruby/runtime/ThreadContext;
0 24 2 rbTypeSize Lorg/jruby/runtime/builtin/IRubyObject;
0 24 3 count I
0 24 4 align I
0 24 5 clear Z
0 24 6 block Lorg/jruby/runtime/Block;
11 14 7 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
15 16 19 any
MethodParameters:
Name Flags
context
rbTypeSize
count
align
clear
block
static org.jruby.ext.ffi.MemoryPointer allocate(org.jruby.Ruby, int, int, boolean);
descriptor: (Lorg/jruby/Ruby;IIZ)Lorg/jruby/ext/ffi/MemoryPointer;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
imul
istore 4
start local 4 1: invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
aload 0
iload 4
ifle 2
iload 4
goto 3
StackMap locals: org.jruby.Ruby int int int int
StackMap stack: org.jruby.ext.ffi.Factory org.jruby.Ruby
2: iconst_1
StackMap locals: org.jruby.Ruby int int int int
StackMap stack: org.jruby.ext.ffi.Factory org.jruby.Ruby int
3: iload 3
invokevirtual org.jruby.ext.ffi.Factory.allocateDirectMemory:(Lorg/jruby/Ruby;IZ)Lorg/jruby/ext/ffi/MemoryIO;
astore 5
start local 5 4: aload 5
ifnonnull 8
5: aload 0
aload 0
invokevirtual org.jruby.Ruby.getNoMemoryError:()Lorg/jruby/RubyClass;
6: ldc "Failed to allocate %d objects of %d bytes"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
7: invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: org.jruby.ext.ffi.MemoryIO
StackMap stack:
new org.jruby.ext.ffi.MemoryPointer
dup
aload 0
aload 0
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.memptrClass:Lorg/jruby/RubyClass;
aload 5
iload 4
i2l
iload 1
invokespecial org.jruby.ext.ffi.MemoryPointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/ffi/MemoryIO;JI)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 runtime Lorg/jruby/Ruby;
0 9 1 typeSize I
0 9 2 count I
0 9 3 clear Z
1 9 4 total I
4 9 5 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
runtime
typeSize
count
clear
public static org.jruby.runtime.builtin.IRubyObject from_string(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 3
start local 3 1: aload 1
checkcast org.jruby.RubyClass
aload 0
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
invokevirtual org.jruby.util.ByteList.length:()I
iconst_1
iadd
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
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;
checkcast org.jruby.ext.ffi.MemoryPointer
astore 4
start local 4 2: aload 4
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lconst_0
aload 3
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 3
invokevirtual org.jruby.util.ByteList.begin:()I
aload 3
invokevirtual org.jruby.util.ByteList.length:()I
invokevirtual org.jruby.ext.ffi.MemoryIO.putZeroTerminatedByteArray:(J[BII)V
3: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 klass Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 s Lorg/jruby/runtime/builtin/IRubyObject;
1 4 3 bl Lorg/jruby/util/ByteList;
2 4 4 ptr Lorg/jruby/ext/ffi/MemoryPointer;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"from_string"}, meta = true)
MethodParameters:
Name Flags
context
klass
s
public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof org.jruby.RubyFixnum
ifeq 5
1: aload 0
aload 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.one:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
2: aload 2
invokestatic org.jruby.RubyFixnum.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_1
iconst_1
aload 3
3: invokevirtual org.jruby.ext.ffi.MemoryPointer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IIZLorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_1
iconst_1
iconst_1
aload 3
invokevirtual org.jruby.ext.ffi.MemoryPointer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IIZLorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
6: StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
block
public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_1
iconst_1
aload 4
invokevirtual org.jruby.ext.ffi.MemoryPointer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IIZLorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 count Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
count
block
public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_1
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
aload 5
invokevirtual org.jruby.ext.ffi.MemoryPointer.init:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;IIZLorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 sizeArg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 count Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 clear Lorg/jruby/runtime/builtin/IRubyObject;
0 1 5 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
sizeArg
count
clear
block
public final java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "MemoryPointer[address=%#x, size=%d]"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getAddress:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield org.jruby.ext.ffi.MemoryPointer.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/MemoryPointer;
public org.jruby.runtime.builtin.IRubyObject op_equal(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: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
if_acmpeq 6
1: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getAddress:()J
lconst_0
lcmp
ifne 2
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 6
2: StackMap locals:
StackMap stack: org.jruby.Ruby
aload 2
instanceof org.jruby.ext.ffi.MemoryPointer
ifeq 5
3: aload 2
checkcast org.jruby.ext.ffi.MemoryPointer
invokevirtual org.jruby.ext.ffi.MemoryPointer.getAddress:()J
aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getAddress:()J
lcmp
ifne 5
4: aload 2
checkcast org.jruby.ext.ffi.MemoryPointer
invokevirtual org.jruby.ext.ffi.MemoryPointer.getSize:()J
aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getSize:()J
lcmp
ifeq 6
StackMap locals:
StackMap stack: org.jruby.Ruby
5: iconst_0
goto 7
StackMap locals:
StackMap stack: org.jruby.Ruby
6: iconst_1
7: StackMap locals: org.jruby.ext.ffi.MemoryPointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 obj Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"=="}, required = 1)
MethodParameters:
Name Flags
context
obj
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=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
checkcast org.jruby.ext.ffi.AllocatedDirectMemoryIO
invokeinterface org.jruby.ext.ffi.AllocatedDirectMemoryIO.free:()V
1: aload 0
new org.jruby.ext.ffi.FreedMemoryIO
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokespecial org.jruby.ext.ffi.FreedMemoryIO.<init>:(Lorg/jruby/Ruby;)V
invokevirtual org.jruby.ext.ffi.MemoryPointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
2: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
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=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
checkcast org.jruby.ext.ffi.AllocatedDirectMemoryIO
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
invokeinterface org.jruby.ext.ffi.AllocatedDirectMemoryIO.setAutoRelease:(Z)V
1: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 release Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"autorelease="}, required = 1)
MethodParameters:
Name Flags
context
release
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 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.ffi.MemoryPointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
checkcast org.jruby.ext.ffi.AllocatedDirectMemoryIO
invokeinterface org.jruby.ext.ffi.AllocatedDirectMemoryIO.isAutoRelease:()Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/MemoryPointer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"autorelease?"})
MethodParameters:
Name Flags
context
}
SourceFile: "MemoryPointer.java"
NestMembers:
org.jruby.ext.ffi.MemoryPointer$1 org.jruby.ext.ffi.MemoryPointer$MemoryPointerAllocator
InnerClasses:
org.jruby.ext.ffi.MemoryPointer$1
private final MemoryPointerAllocator = org.jruby.ext.ffi.MemoryPointer$MemoryPointerAllocator of org.jruby.ext.ffi.MemoryPointer
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"FFI::MemoryPointer"}, parent = "FFI::Pointer")