Serialized Form


Package jsr166y

Class jsr166y.ForkJoinTask extends Object implements Serializable

serialVersionUID: -7721805057305804111L

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitutes the instance from a stream.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Saves the state to a stream.

Serial Data:
the current run status and the exception thrown during execution, or null if none
Throws:
IOException
Serialized Fields

status

int status
Run control status bits packed into a single int to minimize footprint and to ensure atomicity (via CAS). Status is initially zero, and takes on nonnegative values until completed, upon which status holds COMPLETED. CANCELLED, or EXCEPTIONAL, which use the top 3 bits. Tasks undergoing blocking waits by other threads have SIGNAL_MASK bits set -- bit 15 for external (nonFJ) waits, and the rest a count of waiting FJ threads. (This representation relies on ForkJoinPool max thread limits). Completion of a stolen task with SIGNAL_MASK bits set awakens waiter via notifyAll. Even though suboptimal for some purposes, we use basic builtin wait/notify to take advantage of "monitor inflation" in JVMs that we would otherwise need to emulate to avoid adding further per-task bookkeeping overhead. Note that bits 16-28 are currently unused. Also value 0x80000000 is available as spare completion value.

Class jsr166y.LinkedTransferQueue extends AbstractQueue<E> implements Serializable

serialVersionUID: -3223113410248163686L

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitutes the Queue instance from a stream (that is, deserializes it).

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Saves the state to a stream (that is, serializes it).

Serial Data:
All of the elements (each an E) in the proper order, followed by a null
Throws:
IOException

Class jsr166y.RecursiveAction extends ForkJoinTask<Void> implements Serializable

serialVersionUID: 5232453952276485070L

Class jsr166y.RecursiveTask extends ForkJoinTask<V> implements Serializable

serialVersionUID: 5232453952276485270L

Serialized Fields

result

Object result
The result of the computation.

Class jsr166y.ThreadLocalRandom extends Random implements Serializable

serialVersionUID: -5851777807851030925L

Serialized Fields

rnd

long rnd
The random seed. We can't use super.seed.


initialized

boolean initialized
Initialization flag to permit the first and only allowed call to setSeed (inside Random constructor) to succeed. We can't allow others since it would cause setting seed in one part of a program to unintentionally impact other usages by the thread.


pad0

long pad0

pad1

long pad1

pad2

long pad2

pad3

long pad3

pad4

long pad4

pad5

long pad5

pad6

long pad6

pad7

long pad7