public class SafeForkJoinWorkerThreadFactory
extends java.lang.Object
implements java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory
ForkJoinPool.ForkJoinWorkerThreadFactory
that provides ForkJoinWorkerThread
s that won't trigger memory leaks due to retained
references to web application class loaders.
Note: This class must be available on the boot strap class path for it to be
visible to ForkJoinPool
.
Note: This a helper class that is used by memory leak protection code
(JreMemoryLeakPreventionListener
) to workaround a bug in
Oracle Java 7 / Java 8 Java Runtime. See
bug 60620
for discussion links.
As ForkJoinPool.ForkJoinWorkerThreadFactory
class is available since
Java 7 only, compilation of this class is skipped when building Tomcat with Java 6.
Constructor and Description |
---|
SafeForkJoinWorkerThreadFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ForkJoinWorkerThread |
newThread(java.util.concurrent.ForkJoinPool pool) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.