Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2019-04-18 09:50:38 -0400
committerThomas Watson2019-04-18 09:50:38 -0400
commit92e8d29b20e01924ed449c7e5c0f1bb7b96a151b (patch)
tree689ddbbe53eb6190d3826c466cf35f62864ed526
parentada4d36bb6ca0c208881a0c1d528fa3f4cb03bcc (diff)
downloadrt.equinox.framework-92e8d29b20e01924ed449c7e5c0f1bb7b96a151b.tar.gz
rt.equinox.framework-92e8d29b20e01924ed449c7e5c0f1bb7b96a151b.tar.xz
rt.equinox.framework-92e8d29b20e01924ed449c7e5c0f1bb7b96a151b.zip
Bug 540507 - Use same executor when resolver and start-level count < 1
Change-Id: Id90de02b27a55629ee85d2a0713cb604460ddec2 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
index d8b7b2584..b11297c55 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
@@ -111,7 +111,7 @@ public class EquinoxContainerAdaptor extends ModuleContainerAdaptor {
startLevelThreadCnt = 1;
}
- if (resolverThreadCnt == startLevelThreadCnt) {
+ if ((resolverThreadCnt < 1 && startLevelThreadCnt < 1) || resolverThreadCnt == startLevelThreadCnt) {
// use a single executor
this.resolverExecutor = new AtomicLazyInitializer<>();
this.lazyResolverExecutorCreator = createLazyExecutorCreator(container.getConfiguration(), //

Back to the top