public class org.jruby.runtime.ivars.StampedVariableAccessor extends org.jruby.runtime.ivars.VariableAccessor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.ivars.StampedVariableAccessor
super_class: org.jruby.runtime.ivars.VariableAccessor
{
public void <init>(org.jruby.RubyClass, java.lang.String, int, int);
descriptor: (Lorg/jruby/RubyClass;Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
iload 3
iload 4
invokespecial org.jruby.runtime.ivars.VariableAccessor.<init>:(Lorg/jruby/RubyClass;Ljava/lang/String;II)V
1: return
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/runtime/ivars/StampedVariableAccessor;
0 2 1 realClass Lorg/jruby/RubyClass;
0 2 2 name Ljava/lang/String;
0 2 3 index I
0 2 4 classId I
MethodParameters:
Name Flags
realClass
name
index
classId
public void set(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyBasicObject
invokevirtual org.jruby.RubyBasicObject.ensureInstanceVariablesSettable:()V
1: aload 1
checkcast org.jruby.RubyBasicObject
aload 0
getfield org.jruby.runtime.ivars.StampedVariableAccessor.realClass:Lorg/jruby/RubyClass;
aload 0
getfield org.jruby.runtime.ivars.StampedVariableAccessor.index:I
aload 2
invokestatic org.jruby.runtime.ivars.StampedVariableAccessor.setVariable:(Lorg/jruby/RubyBasicObject;Lorg/jruby/RubyClass;ILjava/lang/Object;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/ivars/StampedVariableAccessor;
0 3 1 object Ljava/lang/Object;
0 3 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
object
value
public static void setVariableChecked(org.jruby.RubyBasicObject, org.jruby.RubyClass, int, java.lang.Object);
descriptor: (Lorg/jruby/RubyBasicObject;Lorg/jruby/RubyClass;ILjava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.RubyBasicObject.ensureInstanceVariablesSettable:()V
1: aload 0
aload 1
iload 2
aload 3
invokestatic org.jruby.runtime.ivars.StampedVariableAccessor.setVariable:(Lorg/jruby/RubyBasicObject;Lorg/jruby/RubyClass;ILjava/lang/Object;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Lorg/jruby/RubyBasicObject;
0 3 1 realClass Lorg/jruby/RubyClass;
0 3 2 index I
0 3 3 value Ljava/lang/Object;
MethodParameters:
Name Flags
self
realClass
index
value
public static void setVariable(org.jruby.RubyBasicObject, org.jruby.RubyClass, int, java.lang.Object);
descriptor: (Lorg/jruby/RubyBasicObject;Lorg/jruby/RubyClass;ILjava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyBasicObject.varTableStamp:I
istore 4
start local 4 1: iload 4
iconst_1
iand
ifeq 3
2: goto 0
3: StackMap locals: int
StackMap stack:
getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
aload 0
getstatic org.jruby.RubyBasicObject.VAR_TABLE_OFFSET:J
invokevirtual sun.misc.Unsafe.getObjectVolatile:(Ljava/lang/Object;J)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 5
start local 5 4: aload 5
ifnull 5
iload 2
aload 5
arraylength
if_icmplt 6
5: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
iload 4
aload 1
aload 5
iload 2
aload 3
invokestatic org.jruby.runtime.ivars.StampedVariableAccessor.createTableUnsafe:(Lorg/jruby/RubyBasicObject;ILorg/jruby/RubyClass;[Ljava/lang/Object;ILjava/lang/Object;)Z
ifne 8
goto 0
6: StackMap locals:
StackMap stack:
aload 0
iload 4
aload 5
iload 2
aload 3
invokestatic org.jruby.runtime.ivars.StampedVariableAccessor.updateTableUnsafe:(Lorg/jruby/RubyBasicObject;I[Ljava/lang/Object;ILjava/lang/Object;)Z
ifne 8
end local 5 end local 4 7: goto 0
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 self Lorg/jruby/RubyBasicObject;
0 9 1 realClass Lorg/jruby/RubyClass;
0 9 2 index I
0 9 3 value Ljava/lang/Object;
1 7 4 currentStamp I
4 7 5 currentTable [Ljava/lang/Object;
MethodParameters:
Name Flags
self
realClass
index
value
private static boolean createTableUnsafe(org.jruby.RubyBasicObject, int, org.jruby.RubyClass, java.lang.Object[], int, java.lang.Object);
descriptor: (Lorg/jruby/RubyBasicObject;ILorg/jruby/RubyClass;[Ljava/lang/Object;ILjava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
aload 0
getstatic org.jruby.RubyBasicObject.STAMP_OFFSET:J
iload 1
iinc 1 1
iload 1
invokevirtual sun.misc.Unsafe.compareAndSwapInt:(Ljava/lang/Object;JII)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.RubyClass.getVariableTableSizeWithExtras:()I
anewarray java.lang.Object
astore 6
start local 6 3: aload 3
ifnull 5
4: aload 3
iconst_0
aload 6
iconst_0
aload 3
arraylength
invokestatic org.jruby.util.ArraySupport.copy:([Ljava/lang/Object;I[Ljava/lang/Object;II)V
5: StackMap locals: java.lang.Object[]
StackMap stack:
aload 6
iload 4
aload 5
aastore
6: getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
aload 0
getstatic org.jruby.RubyBasicObject.VAR_TABLE_OFFSET:J
aload 6
invokevirtual sun.misc.Unsafe.putOrderedObject:(Ljava/lang/Object;JLjava/lang/Object;)V
7: aload 0
iload 1
iconst_1
iadd
putfield org.jruby.RubyBasicObject.varTableStamp:I
8: iconst_1
ireturn
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 9 0 self Lorg/jruby/RubyBasicObject;
0 9 1 currentStamp I
0 9 2 realClass Lorg/jruby/RubyClass;
0 9 3 currentTable [Ljava/lang/Object;
0 9 4 index I
0 9 5 value Ljava/lang/Object;
3 9 6 newTable [Ljava/lang/Object;
MethodParameters:
Name Flags
self
currentStamp
realClass
currentTable
index
value
private static boolean updateTableUnsafe(org.jruby.RubyBasicObject, int, java.lang.Object[], int, java.lang.Object);
descriptor: (Lorg/jruby/RubyBasicObject;I[Ljava/lang/Object;ILjava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
iload 3
aload 4
aastore
1: getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
invokevirtual sun.misc.Unsafe.fullFence:()V
2: aload 0
getfield org.jruby.RubyBasicObject.varTableStamp:I
iload 1
if_icmpne 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 self Lorg/jruby/RubyBasicObject;
0 4 1 currentStamp I
0 4 2 currentTable [Ljava/lang/Object;
0 4 3 index I
0 4 4 value Ljava/lang/Object;
MethodParameters:
Name Flags
self
currentStamp
currentTable
index
value
}
SourceFile: "StampedVariableAccessor.java"