[JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (#4035)

This commit is contained in:
Devin Nusbaum authored and Oleg Nenashev committed 2019-06-13 22:27:38 +02:00
1 parent c489b07f31
commit b18b2e686d
1 file changed
+2 -1
+2 -1
View File
@@ -26,6 +26,7 @@ package hudson;
import hudson.Launcher.ProcStarter;
import hudson.model.TaskListener;
import hudson.remoting.Channel;
import hudson.util.ClassLoaderSanityThreadFactory;
import hudson.util.DaemonThreadFactory;
import hudson.util.ExceptionCatchingThreadFactory;
import hudson.util.NamingThreadFactory;
@@ -138,7 +139,7 @@ public abstract class Proc {
@CheckForNull
public abstract OutputStream getStdin();
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new DaemonThreadFactory(), "Proc.executor")));
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new ClassLoaderSanityThreadFactory(new DaemonThreadFactory()), "Proc.executor")));
/**
* Like {@link #join} but can be given a maximum time to wait.