- Enclosing class:
- ForkJoinPool
static final class ForkJoinPool.Submitter
extends java.lang.Object
Per-thread records for threads that submit to pools. Currently
holds only pseudo-random seed / index that is used to choose
submission queues in method externalPush. In the future, this may
also incorporate a means to implement different task rejection
and resubmission policies.
Seeds for submitters and workers/workQueues work in basically
the same way but are initialized and updated using slightly
different mechanics. Both are initialized using the same
approach as in class ThreadLocal, where successive values are
unlikely to collide with previous values. Seeds are then
randomly modified upon collisions using xorshifts, which
requires a non-zero seed.