final class org.jruby.runtime.ObjectSpace$ObjectGroup extends java.util.AbstractList<org.jruby.runtime.builtin.IRubyObject>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.runtime.ObjectSpace$ObjectGroup
super_class: java.util.AbstractList
{
private static final int MAX_OBJECTS_PER_GROUP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 64
private final java.util.concurrent.atomic.AtomicReferenceArray<org.jruby.runtime.builtin.IRubyObject> objects;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReferenceArray<Lorg/jruby/runtime/builtin/IRubyObject;>;
private int nextIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.AbstractList.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReferenceArray
dup
bipush 64
invokespecial java.util.concurrent.atomic.AtomicReferenceArray.<init>:(I)V
putfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2: aload 0
iconst_0
putfield org.jruby.runtime.ObjectSpace$ObjectGroup.nextIndex:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
public boolean add(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getObjectGroupAccessorForWrite:()Lorg/jruby/runtime/ivars/VariableAccessor;
aload 1
aload 0
invokevirtual org.jruby.runtime.ivars.VariableAccessor.set:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.nextIndex:I
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.set:(ILjava/lang/Object;)V
2: aload 0
dup
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.nextIndex:I
iconst_1
iadd
putfield org.jruby.runtime.ObjectSpace$ObjectGroup.nextIndex:I
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
0 4 1 obj Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
obj
public org.jruby.runtime.builtin.IRubyObject get(int);
descriptor: (I)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
0 1 1 index I
MethodParameters:
Name Flags
index
public org.jruby.runtime.builtin.IRubyObject set(int, org.jruby.runtime.builtin.IRubyObject);
descriptor: (ILorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iload 1
aload 2
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.getAndSet:(ILjava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
0 1 1 index I
0 1 2 element Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
index
element
private boolean isFull();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.nextIndex:I
aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.length:()I
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ObjectSpace$ObjectGroup.objects:Ljava/util/concurrent/atomic/AtomicReferenceArray;
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.length:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ObjectSpace$ObjectGroup;
public java.lang.Object set(int, java.lang.Object);
descriptor: (ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
iload 1
aload 2
checkcast org.jruby.runtime.builtin.IRubyObject
invokevirtual org.jruby.runtime.ObjectSpace$ObjectGroup.set:(ILorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object get(int);
descriptor: (I)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokevirtual org.jruby.runtime.ObjectSpace$ObjectGroup.get:(I)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean add(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.jruby.runtime.builtin.IRubyObject
invokevirtual org.jruby.runtime.ObjectSpace$ObjectGroup.add:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/util/AbstractList<Lorg/jruby/runtime/builtin/IRubyObject;>;
SourceFile: "ObjectSpace.java"
NestHost: org.jruby.runtime.ObjectSpace
InnerClasses:
private final ObjectGroup = org.jruby.runtime.ObjectSpace$ObjectGroup of org.jruby.runtime.ObjectSpace