Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsboshev2009-04-27 15:25:49 +0000
committersboshev2009-04-27 15:25:49 +0000
commit04e7e6f86429e82f018c1f16393e329617f3d363 (patch)
tree9d727f1b0ada149df94aab1499b0e55c80fa3f24 /bundles
parent4c2e50edfc146f4ab7e1d72fc353606182034ce3 (diff)
downloadrt.equinox.bundles-04e7e6f86429e82f018c1f16393e329617f3d363.tar.gz
rt.equinox.bundles-04e7e6f86429e82f018c1f16393e329617f3d363.tar.xz
rt.equinox.bundles-04e7e6f86429e82f018c1f16393e329617f3d363.zip
Bug 273851. [DS] [util] 4 threads needed for resolve DS componentsv20090427-1800
Diffstat (limited to 'bundles')
-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