public class org.jruby.runtime.opto.FailoverSwitchPointInvalidator implements org.jruby.runtime.opto.Invalidator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.opto.FailoverSwitchPointInvalidator
super_class: java.lang.Object
{
private static final java.lang.invoke.SwitchPoint DUMMY;
descriptor: Ljava/lang/invoke/SwitchPoint;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicStampedReference<java.lang.invoke.SwitchPoint> switchPoint;
descriptor: Ljava/util/concurrent/atomic/AtomicStampedReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicStampedReference<Ljava/lang/invoke/SwitchPoint;>;
private final int maxFailures;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lorg/jruby/runtime/opto/FailoverSwitchPointInvalidator;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.$assertionsDisabled:Z
3: new java.lang.invoke.SwitchPoint
dup
invokespecial java.lang.invoke.SwitchPoint.<init>:()V
putstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
4: iconst_1
anewarray java.lang.invoke.SwitchPoint
dup
iconst_0
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
aastore
invokestatic java.lang.invoke.SwitchPoint.invalidateAll:([Ljava/lang/invoke/SwitchPoint;)V
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicStampedReference
dup
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
iconst_0
invokespecial java.util.concurrent.atomic.AtomicStampedReference.<init>:(Ljava/lang/Object;I)V
putfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
2: aload 0
iload 1
putfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.maxFailures:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/opto/FailoverSwitchPointInvalidator;
0 4 1 maxFailures I
MethodParameters:
Name Flags
maxFailures
public void invalidate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getReference:()Ljava/lang/Object;
checkcast java.lang.invoke.SwitchPoint
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
if_acmpne 2
return
2: StackMap locals: java.lang.invoke.SwitchPoint
StackMap stack:
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getStamp:()I
istore 2
start local 2 3: getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
astore 3
start local 3 4: iload 2
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.maxFailures:I
if_icmpge 6
5: new java.lang.invoke.SwitchPoint
dup
invokespecial java.lang.invoke.SwitchPoint.<init>:()V
astore 3
6: StackMap locals: int java.lang.invoke.SwitchPoint
StackMap stack:
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
aload 1
aload 3
iload 2
iload 2
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;II)Z
pop
7: iconst_1
anewarray java.lang.invoke.SwitchPoint
dup
iconst_0
aload 1
aastore
invokestatic java.lang.invoke.SwitchPoint.invalidateAll:([Ljava/lang/invoke/SwitchPoint;)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/runtime/opto/FailoverSwitchPointInvalidator;
1 9 1 switchPoint Ljava/lang/invoke/SwitchPoint;
3 9 2 failures I
4 9 3 newSwitch Ljava/lang/invoke/SwitchPoint;
public void invalidateAll(java.util.List<org.jruby.runtime.opto.Invalidator>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.size:()I
anewarray java.lang.invoke.SwitchPoint
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: java.lang.invoke.SwitchPoint[] int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.jruby.runtime.opto.Invalidator
astore 4
start local 4 4: getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.$assertionsDisabled:Z
ifne 5
aload 4
instanceof org.jruby.runtime.opto.FailoverSwitchPointInvalidator
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: org.jruby.runtime.opto.Invalidator
StackMap stack:
aload 2
iload 3
aload 4
checkcast org.jruby.runtime.opto.FailoverSwitchPointInvalidator
invokevirtual org.jruby.runtime.opto.FailoverSwitchPointInvalidator.replaceSwitchPoint:()Ljava/lang/invoke/SwitchPoint;
aastore
end local 4 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 3 8: aload 2
invokestatic java.lang.invoke.SwitchPoint.invalidateAll:([Ljava/lang/invoke/SwitchPoint;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/runtime/opto/FailoverSwitchPointInvalidator;
0 10 1 invalidators Ljava/util/List<Lorg/jruby/runtime/opto/Invalidator;>;
1 10 2 switchPoints [Ljava/lang/invoke/SwitchPoint;
2 8 3 i I
4 6 4 invalidator Lorg/jruby/runtime/opto/Invalidator;
Signature: (Ljava/util/List<Lorg/jruby/runtime/opto/Invalidator;>;)V
MethodParameters:
Name Flags
invalidators
public synchronized java.lang.Object getData();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getReference:()Ljava/lang/Object;
checkcast java.lang.invoke.SwitchPoint
astore 1
start local 1 1: aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getStamp:()I
istore 2
start local 2 2: aload 1
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
if_acmpne 6
iload 2
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.maxFailures:I
if_icmpgt 6
3: new java.lang.invoke.SwitchPoint
dup
invokespecial java.lang.invoke.SwitchPoint.<init>:()V
astore 3
start local 3 4: aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
aload 3
iload 2
iload 2
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;II)Z
ifeq 0
5: aload 3
areturn
end local 3 6: StackMap locals: java.lang.invoke.SwitchPoint int
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/runtime/opto/FailoverSwitchPointInvalidator;
1 7 1 switchPoint Ljava/lang/invoke/SwitchPoint;
2 7 2 failures I
4 6 3 newSwitch Ljava/lang/invoke/SwitchPoint;
public synchronized java.lang.invoke.SwitchPoint replaceSwitchPoint();
descriptor: ()Ljava/lang/invoke/SwitchPoint;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getReference:()Ljava/lang/Object;
checkcast java.lang.invoke.SwitchPoint
astore 1
start local 1 1: aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.getStamp:()I
istore 2
start local 2 2: aload 1
getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
if_acmpeq 3
iload 2
aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.maxFailures:I
if_icmple 4
StackMap locals: java.lang.invoke.SwitchPoint int
StackMap stack:
3: getstatic org.jruby.runtime.opto.FailoverSwitchPointInvalidator.DUMMY:Ljava/lang/invoke/SwitchPoint;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.invoke.SwitchPoint
dup
invokespecial java.lang.invoke.SwitchPoint.<init>:()V
astore 3
start local 3 5: aload 0
getfield org.jruby.runtime.opto.FailoverSwitchPointInvalidator.switchPoint:Ljava/util/concurrent/atomic/AtomicStampedReference;
aload 1
aload 3
iload 2
iload 2
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicStampedReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;II)Z
ifeq 0
6: aload 3
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/runtime/opto/FailoverSwitchPointInvalidator;
1 7 1 switchPoint Ljava/lang/invoke/SwitchPoint;
2 7 2 failures I
5 7 3 newSwitch Ljava/lang/invoke/SwitchPoint;
}
SourceFile: "FailoverSwitchPointInvalidator.java"