提交 8b740530 编写于 作者: K Kohsuke Kawaguchi

Reduce the # of idle threads.

上级 45580ac0
......@@ -39,6 +39,7 @@ import hudson.lifecycle.RestartNotSupportedException;
import hudson.model.UpdateSite.Data;
import hudson.model.UpdateSite.Plugin;
import hudson.model.listeners.SaveableListener;
import hudson.remoting.AtmostOneThreadExecutor;
import hudson.security.ACL;
import hudson.util.DaemonThreadFactory;
import hudson.util.FormValidation;
......@@ -129,7 +130,7 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
* {@link ExecutorService} that performs installation.
* @since 1.501
*/
private final ExecutorService installerService = Executors.newSingleThreadExecutor(
private final ExecutorService installerService = new AtmostOneThreadExecutor(
new DaemonThreadFactory(new ThreadFactory() {
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册