You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2018/09/21 06:32:48 UTC

[isis] branch master updated: ISIS-1974: oops, that should've been Math.max ...

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 408d664  ISIS-1974: oops, that should've been Math.max ...
408d664 is described below

commit 408d6647b8d425bd3692e12813f31a3b9913d870
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Sep 21 08:32:27 2018 +0200

    ISIS-1974: oops, that should've been Math.max ...
    
    ... not Math.min
---
 .../org/apache/isis/core/runtime/threadpool/ThreadPoolSupport.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/metamodel/src/main/java/org/apache/isis/core/runtime/threadpool/ThreadPoolSupport.java b/core/metamodel/src/main/java/org/apache/isis/core/runtime/threadpool/ThreadPoolSupport.java
index c007522..87f162f 100644
--- a/core/metamodel/src/main/java/org/apache/isis/core/runtime/threadpool/ThreadPoolSupport.java
+++ b/core/metamodel/src/main/java/org/apache/isis/core/runtime/threadpool/ThreadPoolSupport.java
@@ -68,8 +68,8 @@ public final class ThreadPoolSupport {
     private ThreadPoolSupport() {
         group = new ThreadGroup(ThreadPoolSupport.class.getName());
 
-        final int corePoolSize = Math.min(Runtime.getRuntime().availableProcessors(), MIN_CORE_POOL_SIZE);
-        final int maximumPoolSize = Math.min(Runtime.getRuntime().availableProcessors(), MIN_MAX_POOL_SIZE);
+        final int corePoolSize = Math.max(Runtime.getRuntime().availableProcessors(), MIN_CORE_POOL_SIZE);
+        final int maximumPoolSize = Math.max(Runtime.getRuntime().availableProcessors(), MIN_MAX_POOL_SIZE);
 
         ThreadFactory threadFactory = new ThreadFactory() {
             @Override