ForkJoinTaskHelper

Members

Static functions

rethrow
void rethrow(Throwable ex)

A version of "sneaky throw" to relay exceptions.

uncheckedThrow
void uncheckedThrow(Throwable t)

The sneaky part of sneaky throw, relying on generics limitations to evade compiler complaints about rethrowing unchecked exceptions.

Static variables

exceptionTable
ExceptionNode[] exceptionTable;

Hash table of exceptions thrown by tasks, to enable reporting by callers. Because exceptions are rare, we don't directly keep them with task objects, but instead use a weak ref table. Note that cancellation exceptions don't appear in the table, but are instead recorded as status values.

exceptionTableLock
ReentrantLock exceptionTableLock;

Lock protecting access to exceptionTable.

Meta