This is an automated email from the ASF dual-hosted git repository. kfujino pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 884293e Start all core threads when starting the receiver and dispatch interceptor 884293e is described below commit 884293ef6bf036293503e734a9cd72194b7e63cc Author: KeiichiFujino <kfuj...@apache.org> AuthorDate: Wed Dec 2 22:00:55 2020 +0900 Start all core threads when starting the receiver and dispatch interceptor --- java/org/apache/catalina/tribes/util/ExecutorFactory.java | 4 ++++ webapps/docs/changelog.xml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/java/org/apache/catalina/tribes/util/ExecutorFactory.java b/java/org/apache/catalina/tribes/util/ExecutorFactory.java index 956b3a1..cb67745 100644 --- a/java/org/apache/catalina/tribes/util/ExecutorFactory.java +++ b/java/org/apache/catalina/tribes/util/ExecutorFactory.java @@ -47,19 +47,23 @@ public class ExecutorFactory { private static class TribesThreadPoolExecutor extends ThreadPoolExecutor { public TribesThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) { super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, handler); + prestartAllCoreThreads(); } public TribesThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) { super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler); + prestartAllCoreThreads(); } public TribesThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) { super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory); + prestartAllCoreThreads(); } public TribesThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) { super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue); + prestartAllCoreThreads(); } @Override diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index d243682..e5eb7f6 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -150,6 +150,14 @@ </fix> </changelog> </subsection> + <subsection name="Tribes"> + <changelog> + <scode> + Start all core threads when starting the receiver and dispatch + interceptor. (kfujino) + </scode> + </changelog> + </subsection> <subsection name="Other"> <changelog> <add> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org