Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-04-09 17:15:14 -0400
committerThomas Watson2014-04-09 17:15:14 -0400
commit264199da032445104ed1509182d4d8e6d6dcc919 (patch)
treeeb22afec1b8e1c58083d6f2900dad7d8ee751e59
parente6d4dde641718e9b59a7387b5726898a1e5adff4 (diff)
downloadrt.equinox.framework-264199da032445104ed1509182d4d8e6d6dcc919.tar.gz
rt.equinox.framework-264199da032445104ed1509182d4d8e6d6dcc919.tar.xz
rt.equinox.framework-264199da032445104ed1509182d4d8e6d6dcc919.zip
Bug 432462 - Remove a lock while calling findLoadedClass
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
index c51758544..7593c3006 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
@@ -292,13 +292,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
public Class<?> publicFindLoaded(String classname) {
if (isRegisteredAsParallel()) {
- boolean initialLock = lockClassName(classname);
- try {
- return findLoadedClass(classname);
- } finally {
- if (initialLock)
- unlockClassName(classname);
- }
+ return findLoadedClass(classname);
}
synchronized (this) {
return findLoadedClass(classname);

Back to the top