Skip to content

Commit

Permalink
[JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (
Browse files Browse the repository at this point in the history
  • Loading branch information
dwnusbaum authored and ArturHarasimiuk committed Jun 14, 2019
1 parent b0f5eaa commit 0312f25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/Proc.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
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;
Expand Down Expand Up @@ -138,7 +139,7 @@ protected 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.
Expand Down

0 comments on commit 0312f25

Please sign in to comment.