APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.misc

public Class CarrierThread

extends ForkJoinWorkerThread
Class Inheritance
Imports
java.util.concurrent.ForkJoinPool, .ForkJoinWorkerThread, jdk.internal.access.JavaLangAccess, .JavaUtilConcurrentFJPAccess, .SharedSecrets, jdk.internal.vm.Continuation

A ForkJoinWorkerThread that can be used as a carrier thread.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
CarrierThread.ForkJoinPools

Defines static methods to invoke non-public ForkJoinPool methods via the shared secret support.

Field Summary

Modifier and TypeField and Description
private static final ThreadGroup
private static final int
private long
private static final int
private int
private static final long
private static final long
private static final JavaLangAccess
private static final int
private static final Unsafe

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
beginBlocking()

Mark the start of a blocking operation.

private static ThreadGroup
carrierThreadGroup()

The thread group for the carrier threads.

public void
endBlocking()

Mark the end of a blocking operation.

public void
setContextClassLoader(ClassLoader cl)

Overrides java.lang.Thread.setContextClassLoader.

Sets the context ClassLoader for this thread.

public void
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler ueh)

Overrides java.lang.Thread.setUncaughtExceptionHandler.

Set the handler invoked when this thread abruptly terminates due to an uncaught exception.

Inherited from java.util.concurrent.ForkJoinWorkerThread:
getPoolgetPoolIndexgetQueuedTaskCountonStartonTerminationrun

Field Detail

CARRIER_THREADGROUPback to summary
private static final ThreadGroup CARRIER_THREADGROUP
COMPENSATE_IN_PROGRESSback to summary
private static final int COMPENSATE_IN_PROGRESS
compensateValueback to summary
private long compensateValue
COMPENSATINGback to summary
private static final int COMPENSATING
compensatingback to summary
private int compensating
CONTEXTCLASSLOADERback to summary
private static final long CONTEXTCLASSLOADER
INHERITABLETHREADLOCALSback to summary
private static final long INHERITABLETHREADLOCALS

Hides java.util.concurrent.ForkJoinWorkerThread.INHERITABLETHREADLOCALS.

JLAback to summary
private static final JavaLangAccess JLA

Hides java.util.concurrent.ForkJoinWorkerThread.JLA.

NOT_COMPENSATINGback to summary
private static final int NOT_COMPENSATING
Uback to summary
private static final Unsafe U

Hides java.util.concurrent.ForkJoinWorkerThread.U.

Constructor Detail

CarrierThreadback to summary
public CarrierThread(ForkJoinPool pool)
Annotations
@SuppressWarnings:this-escape

Method Detail

beginBlockingback to summary
public boolean beginBlocking()

Mark the start of a blocking operation.

carrierThreadGroupback to summary
private static ThreadGroup carrierThreadGroup()

The thread group for the carrier threads.

endBlockingback to summary
public void endBlocking()

Mark the end of a blocking operation.

setContextClassLoaderback to summary
public void setContextClassLoader(ClassLoader cl)

Overrides java.lang.Thread.setContextClassLoader.

Doc from java.lang.Thread.setContextClassLoader.

Sets the context ClassLoader for this thread.

The context ClassLoader may be set by the creator of the thread for use by code running in this thread when loading classes and resources.

Annotations
@Override
setUncaughtExceptionHandlerback to summary
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler ueh)

Overrides java.lang.Thread.setUncaughtExceptionHandler.

Doc from java.lang.Thread.setUncaughtExceptionHandler.

Set the handler invoked when this thread abruptly terminates due to an uncaught exception.

A thread can take full control of how it responds to uncaught exceptions by having its uncaught exception handler explicitly set. If no such handler is set then the thread's ThreadGroup object acts as its handler.

Annotations
@Override
jdk.internal.misc back to summary

private Class CarrierThread.ForkJoinPools

extends Object
Class Inheritance

Defines static methods to invoke non-public ForkJoinPool methods via the shared secret support.

Field Summary

Modifier and TypeField and Description
private static final JavaUtilConcurrentFJPAccess

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static long
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FJP_ACCESSback to summary
private static final JavaUtilConcurrentFJPAccess FJP_ACCESS

Constructor Detail

ForkJoinPoolsback to summary
private ForkJoinPools()

Method Detail

beginCompensatedBlockback to summary
pack-priv static long beginCompensatedBlock(ForkJoinPool pool)
endCompensatedBlockback to summary
pack-priv static void endCompensatedBlock(ForkJoinPool pool, long post)