summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 7da1cf0c405..67256e507ad 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -122,7 +122,7 @@ public final class ThreadPool
}
}
- protected void
+ protected synchronized void
finalize()
throws Throwable
{
@@ -274,7 +274,6 @@ public final class ThreadPool
// wouldn't be possible here anyway, because otherwise the
// other threads would never terminate.)
//
- assert(_destroyed);
java.util.Iterator i = _threads.iterator();
while(i.hasNext())
{