Skip to content

Commit 0312f25

Browse files
dwnusbaumArturHarasimiuk
authored andcommitted
[JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (jenkinsci#4035)
1 parent b0f5eaa commit 0312f25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/hudson/Proc.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import hudson.Launcher.ProcStarter;
2727
import hudson.model.TaskListener;
2828
import hudson.remoting.Channel;
29+
import hudson.util.ClassLoaderSanityThreadFactory;
2930
import hudson.util.DaemonThreadFactory;
3031
import hudson.util.ExceptionCatchingThreadFactory;
3132
import hudson.util.NamingThreadFactory;
@@ -138,7 +139,7 @@ protected Proc() {}
138139
@CheckForNull
139140
public abstract OutputStream getStdin();
140141

141-
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new DaemonThreadFactory(), "Proc.executor")));
142+
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new ClassLoaderSanityThreadFactory(new DaemonThreadFactory()), "Proc.executor")));
142143

143144
/**
144145
* Like {@link #join} but can be given a maximum time to wait.

0 commit comments

Comments
 (0)