summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/Ice/ObjectAdapterI.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/java/src/Ice/ObjectAdapterI.java b/java/src/Ice/ObjectAdapterI.java
index 04d0ced5a95..5b208d09d31 100644
--- a/java/src/Ice/ObjectAdapterI.java
+++ b/java/src/Ice/ObjectAdapterI.java
@@ -526,11 +526,17 @@ public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapt
}
}
- public synchronized IceInternal.ServantManager
+ public IceInternal.ServantManager
getServantManager()
- {
- checkForDeactivation();
+ {
+ // No mutex lock necessary, _threadPool and _instance are
+ // immutable after creation until they are removed in
+ // waitForDeactivate().
+ // Not check for deactivation here!
+
+ assert(_instance != null); // Must not be called after waitForDeactivate().
+
return _servantManager;
}