Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2018-11-07 17:30:13 -0500
committerThomas Watson2018-11-07 22:53:20 -0500
commitdb59265c116b04e75eec7a19368b788962cc24bc (patch)
tree650635a8fa726e0244f423135d1a4224fd801ba8
parent419454b0a952559d62117e102dfdceb8a7416d78 (diff)
downloadrt.equinox.framework-db59265c116b04e75eec7a19368b788962cc24bc.tar.gz
rt.equinox.framework-db59265c116b04e75eec7a19368b788962cc24bc.tar.xz
rt.equinox.framework-db59265c116b04e75eec7a19368b788962cc24bc.zip
Change-Id: I73ae939eeced8e85948c5b4a7810602f32fe2473 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java27
1 files changed, 22 insertions, 5 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
index 7cd23b8f4..573fa1f36 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
@@ -13,8 +13,21 @@
*******************************************************************************/
package org.eclipse.osgi.container;
-import java.io.*;
-import java.util.*;
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.EnumSet;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock;
@@ -28,10 +41,14 @@ import org.eclipse.osgi.framework.util.ObjectPool;
import org.eclipse.osgi.internal.container.Capabilities;
import org.eclipse.osgi.internal.container.ComputeNodeOrder;
import org.eclipse.osgi.internal.framework.EquinoxConfiguration;
-import org.osgi.framework.*;
+import org.osgi.framework.BundleException;
+import org.osgi.framework.Constants;
+import org.osgi.framework.Version;
import org.osgi.framework.namespace.PackageNamespace;
import org.osgi.framework.wiring.BundleRevision;
-import org.osgi.resource.*;
+import org.osgi.resource.Namespace;
+import org.osgi.resource.Requirement;
+import org.osgi.resource.Wire;
import org.osgi.service.resolver.Resolver;
/**
@@ -120,7 +137,7 @@ public class ModuleDatabase {
/**
* Monitors read and write access to this database
*/
- private final ReentrantReadWriteLock monitor = new ReentrantReadWriteLock(true);
+ private final ReentrantReadWriteLock monitor = new ReentrantReadWriteLock(false);
static enum Sort {
BY_DEPENDENCY, BY_START_LEVEL, BY_ID;

Back to the top