public final class org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner<T, BT extends org.eclipse.collections.api.block.procedure.Procedure<? super T>>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner
super_class: java.lang.Object
{
private final org.eclipse.collections.api.block.function.Function<org.eclipse.collections.impl.parallel.ArrayProcedureFJTask<T, BT>, BT> procedureFunction;
descriptor: Lorg/eclipse/collections/api/block/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/api/block/function/Function<Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask<TT;TBT;>;TBT;>;
private org.eclipse.collections.impl.parallel.ArrayProcedureFJTask<T, BT>[] procedures;
descriptor: [Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask;
flags: (0x0002) ACC_PRIVATE
Signature: [Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask<TT;TBT;>;
private java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
private final java.util.concurrent.CountDownLatch latch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.collections.impl.parallel.Combiner<BT> combiner;
descriptor: Lorg/eclipse/collections/impl/parallel/Combiner;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
private final java.util.concurrent.BlockingQueue<BT> outputQueue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<TBT;>;
private final int taskCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.eclipse.collections.impl.parallel.Combiner<BT>, );
descriptor: (Lorg/eclipse/collections/impl/parallel/Combiner;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner$ProcedureExtractor
dup
aload 0
invokespecial org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner$ProcedureExtractor.<init>:(Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner;)V
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.procedureFunction:Lorg/eclipse/collections/api/block/function/Function;
2: aload 0
aload 1
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
3: aload 0
iload 2
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
4: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 8
5: aload 0
new java.util.concurrent.ArrayBlockingQueue
dup
iload 2
invokespecial java.util.concurrent.ArrayBlockingQueue.<init>:(I)V
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
6: aload 0
aconst_null
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
7: goto 10
8: StackMap locals: org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner org.eclipse.collections.impl.parallel.Combiner int
StackMap stack:
aload 0
new java.util.concurrent.CountDownLatch
dup
iload 2
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
9: aload 0
aconst_null
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
0 11 1 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 11 2 newTaskCount I
Signature: (Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;I)V
MethodParameters:
Name Flags
newCombiner
newTaskCount
private void createAndExecuteTasks(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ProcedureFactory<BT>, );
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;[Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
anewarray org.eclipse.collections.impl.parallel.ArrayProcedureFJTask
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask;
1: aload 3
arraylength
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
idiv
istore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 11
4: StackMap locals: int int
StackMap stack:
new org.eclipse.collections.impl.parallel.ArrayProcedureFJTask
dup
aload 0
aload 2
aload 3
iload 5
5: iload 4
iload 5
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
iconst_1
isub
if_icmpne 6
iconst_1
goto 7
StackMap locals: org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ProcedureFactory java.lang.Object[] int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ProcedureFactory java.lang.Object[] int int
6: iconst_0
7: StackMap locals: org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ProcedureFactory java.lang.Object[] int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ProcedureFactory java.lang.Object[] int int int
invokespecial org.eclipse.collections.impl.parallel.ArrayProcedureFJTask.<init>:(Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;[Ljava/lang/Object;IIZ)V
astore 6
start local 6 8: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask;
iload 5
aload 6
aastore
9: aload 1
aload 6
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
end local 6 10: iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
if_icmplt 4
end local 5 12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
0 13 1 executor Ljava/util/concurrent/Executor;
0 13 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;
0 13 3 array [Ljava/lang/Object;
2 13 4 sectionSize I
3 12 5 index I
8 10 6 procedureFJTask Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask<TT;TBT;>;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;[TT;)V
MethodParameters:
Name Flags
executor
procedureFactory
array
public void taskCompleted(org.eclipse.collections.impl.parallel.ArrayProcedureFJTask<T, BT>);
descriptor: (Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 3
1: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokevirtual org.eclipse.collections.impl.parallel.ArrayProcedureFJTask.getProcedure:()Lorg/eclipse/collections/api/block/procedure/Procedure;
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
0 5 1 task Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask<TT;TBT;>;
Signature: (Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask<TT;TBT;>;)V
MethodParameters:
Name Flags
task
private void join();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 7
1: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.taskCount:I
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.take:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.block.procedure.Procedure
invokeinterface org.eclipse.collections.impl.parallel.Combiner.combineOne:(Ljava/lang/Object;)V
4: iinc 1 -1
5: StackMap locals:
StackMap stack:
iload 1
ifgt 3
end local 1 6: goto 11
7: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
8: goto 11
9: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 10: new java.lang.RuntimeException
dup
ldc "Combine failed"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
2 6 1 remainingTaskCount I
10 11 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 8 9 Class java.lang.InterruptedException
public void executeAndCombine(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ProcedureFactory<BT>, );
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;[Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokevirtual org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.createAndExecuteTasks:(Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;[Ljava/lang/Object;)V
1: aload 0
invokevirtual org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.join:()V
2: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.error:Ljava/lang/Throwable;
ifnull 4
3: new java.lang.RuntimeException
dup
ldc "One or more parallel tasks failed"
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.error:Ljava/lang/Throwable;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combineTasks:()V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
0 6 1 executor Ljava/util/concurrent/Executor;
0 6 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;
0 6 3 array [Ljava/lang/Object;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;[TT;)V
MethodParameters:
Name Flags
executor
procedureFactory
array
public void setFailed(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.error:Ljava/lang/Throwable;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
0 2 1 newError Ljava/lang/Throwable;
MethodParameters:
Name Flags
newError
private void combineTasks();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifne 2
1: aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTask;
aload 0
getfield org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner.procedureFunction:Lorg/eclipse/collections/api/block/function/Function;
invokestatic org.eclipse.collections.impl.utility.ArrayIterate.collect:([Ljava/lang/Object;Lorg/eclipse/collections/api/block/function/Function;)Lorg/eclipse/collections/api/list/MutableList;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.combineAll:(Ljava/lang/Iterable;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/parallel/ArrayProcedureFJTaskRunner<TT;TBT;>;
}
Signature: <T:Ljava/lang/Object;BT::Lorg/eclipse/collections/api/block/procedure/Procedure<-TT;>;>Ljava/lang/Object;
SourceFile: "ArrayProcedureFJTaskRunner.java"
NestMembers:
org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner$ProcedureExtractor
InnerClasses:
private final ProcedureExtractor = org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner$ProcedureExtractor of org.eclipse.collections.impl.parallel.ArrayProcedureFJTaskRunner