public final class org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner<T, BT extends org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T>>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner
super_class: java.lang.Object
{
private final org.eclipse.collections.api.block.function.Function<org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask<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/ObjectIntProcedureFJTask<TT;TBT;>;TBT;>;
private org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask<T, BT>[] procedures;
descriptor: [Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask;
flags: (0x0002) ACC_PRIVATE
Signature: [Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask<TT;TBT;>;
private java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
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 int taskCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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 java.util.concurrent.CountDownLatch latch;
descriptor: Ljava/util/concurrent/CountDownLatch;
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=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
1: aload 1
iload 2
invokestatic org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.buildQueue:(Lorg/eclipse/collections/impl/parallel/Combiner;I)Ljava/util/concurrent/ArrayBlockingQueue;
2: aload 1
iload 2
invokestatic org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.buildCountDownLatch:(Lorg/eclipse/collections/impl/parallel/Combiner;I)Ljava/util/concurrent/CountDownLatch;
invokespecial org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.<init>:(Lorg/eclipse/collections/impl/parallel/Combiner;ILjava/util/concurrent/BlockingQueue;Ljava/util/concurrent/CountDownLatch;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 4 1 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 4 2 taskCount I
Signature: (Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;I)V
MethodParameters:
Name Flags
newCombiner
taskCount
void <init>(org.eclipse.collections.impl.parallel.Combiner<BT>, int, java.util.concurrent.BlockingQueue<BT>, java.util.concurrent.CountDownLatch);
descriptor: (Lorg/eclipse/collections/impl/parallel/Combiner;ILjava/util/concurrent/BlockingQueue;Ljava/util/concurrent/CountDownLatch;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner$ObjectIntProcedureExtractor
dup
aload 0
invokespecial org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner$ObjectIntProcedureExtractor.<init>:(Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTaskRunner;)V
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.procedureFunction:Lorg/eclipse/collections/api/block/function/Function;
2: aload 0
aload 1
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
3: aload 0
iload 2
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.taskCount:I
4: aload 0
aload 3
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
5: aload 0
aload 4
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 7 1 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 7 2 taskCount I
0 7 3 queue Ljava/util/concurrent/BlockingQueue<TBT;>;
0 7 4 latch Ljava/util/concurrent/CountDownLatch;
Signature: (Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;ILjava/util/concurrent/BlockingQueue<TBT;>;Ljava/util/concurrent/CountDownLatch;)V
MethodParameters:
Name Flags
newCombiner
taskCount
queue
latch
private static <BT> java.util.concurrent.CountDownLatch buildCountDownLatch(org.eclipse.collections.impl.parallel.Combiner<BT>, int);
descriptor: (Lorg/eclipse/collections/impl/parallel/Combiner;I)Ljava/util/concurrent/CountDownLatch;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: new java.util.concurrent.CountDownLatch
dup
iload 1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
StackMap locals:
StackMap stack: java.util.concurrent.CountDownLatch
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 3 1 taskCount I
Signature: <BT:Ljava/lang/Object;>(Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;I)Ljava/util/concurrent/CountDownLatch;
MethodParameters:
Name Flags
newCombiner
taskCount
private static <BT> java.util.concurrent.ArrayBlockingQueue<BT> buildQueue(org.eclipse.collections.impl.parallel.Combiner<BT>, int);
descriptor: (Lorg/eclipse/collections/impl/parallel/Combiner;I)Ljava/util/concurrent/ArrayBlockingQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 1
new java.util.concurrent.ArrayBlockingQueue
dup
iload 1
invokespecial java.util.concurrent.ArrayBlockingQueue.<init>:(I)V
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: java.util.concurrent.ArrayBlockingQueue
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 3 1 taskCount I
Signature: <BT:Ljava/lang/Object;>(Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;I)Ljava/util/concurrent/ArrayBlockingQueue<TBT;>;
MethodParameters:
Name Flags
newCombiner
taskCount
private void createAndExecuteTasks(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory<BT>, java.util.List<T>);
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory;Ljava/util/List;)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.ObjectIntProcedureFJTaskRunner.taskCount:I
anewarray org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask
putfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask;
1: aload 3
invokeinterface java.util.List.size:()I
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTask
dup
aload 0
aload 2
aload 3
iload 5
iload 4
iload 5
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.taskCount:I
iconst_1
isub
if_icmpne 5
iconst_1
goto 6
StackMap locals: org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory java.util.List int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory java.util.List int int
5: iconst_0
StackMap locals: org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory java.util.List int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory java.util.List int int int
6: invokespecial org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask.<init>:(Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTaskRunner;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory;Ljava/util/List;IIZ)V
7: astore 6
start local 6 8: aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask;
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.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 13 1 executor Ljava/util/concurrent/Executor;
0 13 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory<TBT;>;
0 13 3 list Ljava/util/List<TT;>;
2 13 4 sectionSize I
3 12 5 index I
8 10 6 procedureFJTask Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask<TT;TBT;>;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory<TBT;>;Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
executor
procedureFactory
list
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.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 2 1 newError Ljava/lang/Throwable;
MethodParameters:
Name Flags
newError
public void taskCompleted(org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask<T, BT>);
descriptor: (Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask;)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.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokevirtual org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTask.getProcedure:()Lorg/eclipse/collections/api/block/procedure/primitive/ObjectIntProcedure;
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.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 5 1 task Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask<TT;TBT;>;
Signature: (Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask<TT;TBT;>;)V
MethodParameters:
Name Flags
task
public void executeAndCombine(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory<BT>, java.util.List<T>);
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory;Ljava/util/List;)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.ObjectIntProcedureFJTaskRunner.createAndExecuteTasks:(Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory;Ljava/util/List;)V
1: aload 0
invokevirtual org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.join:()V
2: aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
0 6 1 executor Ljava/util/concurrent/Executor;
0 6 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory<TBT;>;
0 6 3 list Ljava/util/List<TT;>;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFactory<TBT;>;Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
executor
procedureFactory
list
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.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTaskRunner.taskCount:I
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.take:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure
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.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
2 6 1 remaingTaskCount I
10 11 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 8 9 Class java.lang.InterruptedException
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.ObjectIntProcedureFJTaskRunner.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.ObjectIntProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ObjectIntProcedureFJTask;
aload 0
getfield org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner.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/ObjectIntProcedureFJTaskRunner<TT;TBT;>;
}
Signature: <T:Ljava/lang/Object;BT::Lorg/eclipse/collections/api/block/procedure/primitive/ObjectIntProcedure<-TT;>;>Ljava/lang/Object;
SourceFile: "ObjectIntProcedureFJTaskRunner.java"
NestMembers:
org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner$ObjectIntProcedureExtractor
InnerClasses:
private final ObjectIntProcedureExtractor = org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner$ObjectIntProcedureExtractor of org.eclipse.collections.impl.parallel.ObjectIntProcedureFJTaskRunner