diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-04-29 18:17:14 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-04-29 18:17:14 +0000 |
commit | 19b5869472e679fb244709a53a1bb8b79ec5186f (patch) | |
tree | f65bbf8032a89f96a3c55c468d00e04a7e43edf5 /java/src/IceInternal/OutgoingConnectionFactory.java | |
parent | Added call to srand48() (diff) | |
download | ice-19b5869472e679fb244709a53a1bb8b79ec5186f.tar.bz2 ice-19b5869472e679fb244709a53a1bb8b79ec5186f.tar.xz ice-19b5869472e679fb244709a53a1bb8b79ec5186f.zip |
- Removing BufferManager class and BasicStream.destroy(), which reduces the
complexity of many existing finalizers.
- Removed code that cleans up cached objects.
- For compatibility with C#, finalizers no longer call methods on other
objects.
Diffstat (limited to 'java/src/IceInternal/OutgoingConnectionFactory.java')
-rw-r--r-- | java/src/IceInternal/OutgoingConnectionFactory.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/java/src/IceInternal/OutgoingConnectionFactory.java b/java/src/IceInternal/OutgoingConnectionFactory.java index c6e060258db..5d8d13a0277 100644 --- a/java/src/IceInternal/OutgoingConnectionFactory.java +++ b/java/src/IceInternal/OutgoingConnectionFactory.java @@ -61,11 +61,15 @@ public final class OutgoingConnectionFactory } // - // We want to wait until all connections are finished - // outside the thread synchronization. + // We want to wait until all connections are finished outside the + // thread synchronization. + // + // For consistency with C#, we set _connections to null rather than to a + // new empty list so that our finalizer does not try to invoke any + // methods on member objects. // connections = _connections; - _connections = new java.util.HashMap(); + _connections = null; } // @@ -543,7 +547,7 @@ public final class OutgoingConnectionFactory throws Throwable { assert(_destroyed); - assert(_connections.isEmpty()); + assert(_connections == null); super.finalize(); } |