public class org.jruby.util.Join$Spec
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.Join$Spec
super_class: java.lang.Object
{
private java.util.ArrayList<java.util.ArrayList<org.jruby.util.Join$Reaction>> reactionsPerChannel;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Ljava/util/ArrayList<Lorg/jruby/util/Join$Reaction;>;>;
private long asyncMask;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long mask;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private volatile org.jruby.util.Join$Reaction[][] cachedReactionsPerChannel;
descriptor: [[Lorg/jruby/util/Join$Reaction;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final org.jruby.util.Join$Reaction[] EMPTY_REACTIONS;
descriptor: [Lorg/jruby/util/Join$Reaction;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray org.jruby.util.Join$Reaction
putstatic org.jruby.util.Join$Spec.EMPTY_REACTIONS:[Lorg/jruby/util/Join$Reaction;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
2: aload 0
lconst_0
putfield org.jruby.util.Join$Spec.asyncMask:J
3: aload 0
lconst_0
putfield org.jruby.util.Join$Spec.mask:J
4: aload 0
aconst_null
putfield org.jruby.util.Join$Spec.cachedReactionsPerChannel:[[Lorg/jruby/util/Join$Reaction;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/util/Join$Spec;
public void addReaction(org.jruby.util.Join$Reaction);
descriptor: (Lorg/jruby/util/Join$Reaction;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.Join$Spec.mask:J
aload 0
getfield org.jruby.util.Join$Spec.asyncMask:J
ldc -1
lxor
land
aload 1
getfield org.jruby.util.Join$Reaction.asyncMask:J
land
lconst_0
lcmp
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Cannot use a synchronous channel in a non-head position"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.util.Join$Reaction.mask:J
aload 1
getfield org.jruby.util.Join$Reaction.asyncMask:J
ldc -1
lxor
land
aload 0
getfield org.jruby.util.Join$Spec.asyncMask:J
land
lconst_0
lcmp
ifeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "Cannot use an asynchronous channel in the head position of a synchronous reaction"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.jruby.util.Join$Spec.cachedReactionsPerChannel:[[Lorg/jruby/util/Join$Reaction;
5: aload 1
getfield org.jruby.util.Join$Reaction.indices:[I
astore 2
start local 2 6: iconst_0
istore 3
start local 3 7: goto 20
8: StackMap locals: int[] int
StackMap stack:
aload 2
iload 3
iaload
istore 4
start local 4 9: aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iload 4
if_icmpgt 14
10: aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
iload 4
iconst_1
iadd
invokevirtual java.util.ArrayList.ensureCapacity:(I)V
11: goto 13
12: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
aconst_null
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iload 4
if_icmple 12
14: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 5
start local 5 15: aload 5
ifnonnull 18
16: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
17: aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
iload 4
aload 5
invokevirtual java.util.ArrayList.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
18: StackMap locals: java.util.ArrayList
StackMap stack:
aload 5
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 19: iinc 3 1
StackMap locals:
StackMap stack:
20: iload 3
aload 2
arraylength
if_icmplt 8
end local 3 21: aload 0
dup
getfield org.jruby.util.Join$Spec.asyncMask:J
aload 1
getfield org.jruby.util.Join$Reaction.asyncMask:J
lor
putfield org.jruby.util.Join$Spec.asyncMask:J
22: aload 0
dup
getfield org.jruby.util.Join$Spec.mask:J
aload 1
getfield org.jruby.util.Join$Reaction.mask:J
lor
putfield org.jruby.util.Join$Spec.mask:J
23: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/jruby/util/Join$Spec;
0 24 1 reaction Lorg/jruby/util/Join$Reaction;
6 24 2 indices [I
7 21 3 i I
9 19 4 index I
15 19 5 reactions Ljava/util/ArrayList<Lorg/jruby/util/Join$Reaction;>;
MethodParameters:
Name Flags
reaction
public org.jruby.util.Join createJoin();
descriptor: ()Lorg/jruby/util/Join;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.util.Join.TRIVIAL_EXECUTOR:Ljava/util/concurrent/Executor;
invokevirtual org.jruby.util.Join$Spec.createJoin:(Ljava/util/concurrent/Executor;)Lorg/jruby/util/Join;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/Join$Spec;
public org.jruby.util.Join createJoin(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)Lorg/jruby/util/Join;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.Join$Spec.cachedReactionsPerChannel:[[Lorg/jruby/util/Join$Reaction;
ifnonnull 11
1: aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
istore 2
start local 2 2: iload 2
anewarray org.jruby.util.Join$Reaction[]
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 9
5: StackMap locals: int org.jruby.util.Join$Reaction[][] int
StackMap stack:
aload 0
getfield org.jruby.util.Join$Spec.reactionsPerChannel:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 5
start local 5 6: aload 5
ifnull 8
7: aload 3
iload 4
aload 5
getstatic org.jruby.util.Join$Spec.EMPTY_REACTIONS:[Lorg/jruby/util/Join$Reaction;
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.jruby.util.Join$Reaction[]
aastore
end local 5 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 2
if_icmplt 5
end local 4 10: aload 0
aload 3
putfield org.jruby.util.Join$Spec.cachedReactionsPerChannel:[[Lorg/jruby/util/Join$Reaction;
end local 3 end local 2 11: StackMap locals:
StackMap stack:
new org.jruby.util.Join
dup
aload 0
getfield org.jruby.util.Join$Spec.asyncMask:J
aload 0
getfield org.jruby.util.Join$Spec.cachedReactionsPerChannel:[[Lorg/jruby/util/Join$Reaction;
aload 1
invokespecial org.jruby.util.Join.<init>:(J[[Lorg/jruby/util/Join$Reaction;Ljava/util/concurrent/Executor;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/util/Join$Spec;
0 12 1 executor Ljava/util/concurrent/Executor;
2 11 2 length I
3 11 3 localReactionsPerChannel [[Lorg/jruby/util/Join$Reaction;
4 10 4 i I
6 8 5 reactions Ljava/util/ArrayList<Lorg/jruby/util/Join$Reaction;>;
MethodParameters:
Name Flags
executor final
}
SourceFile: "Join.java"
NestHost: org.jruby.util.Join
InnerClasses:
public abstract Reaction = org.jruby.util.Join$Reaction of org.jruby.util.Join
public Spec = org.jruby.util.Join$Spec of org.jruby.util.Join