Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java')
-rw-r--r--bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java b/bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java
index 87ff3ed35..339cb9fb1 100644
--- a/bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java
+++ b/bundles/org.eclipse.equinox.util/src/org/eclipse/equinox/internal/util/impl/tpt/threadpool/ThreadPoolManagerImpl.java
@@ -42,7 +42,7 @@ public class ThreadPoolManagerImpl extends ObjectPool implements TimerListener,
private static String pIgnoreMax = "equinox.util.threadpool.ignoreMaximum";
- private static int defMin = 4;
+ private static int defMin = 1;
private static int defMax = 48;
@@ -64,12 +64,13 @@ public class ThreadPoolManagerImpl extends ObjectPool implements TimerListener,
public static ThreadPoolManagerImpl getThreadPool() {
if (threadPool == null) {
int intSize = UtilActivator.getInteger(pMin, defMin);
+ int minFill = intSize;
int factor = UtilActivator.getInteger(pMax, defMax);
intSize = intSize < 2 ? 2 : intSize;
if (intSize > factor) {
factor = (int) (intSize * 1.5 + 0.5);
}
- threadPool = new ThreadPoolManagerImpl(intSize, (factor / intSize), intSize);
+ threadPool = new ThreadPoolManagerImpl(intSize, (factor / intSize), minFill);
}
return threadPool;
}

Back to the top