提交 b18b2e68 编写于 作者: D Devin Nusbaum 提交者: Oleg Nenashev

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

上级 c489b07f
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册