summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Outgoing.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-05-05 20:59:13 +0000
committerMark Spruiell <mes@zeroc.com>2005-05-05 20:59:13 +0000
commit5be7b412439b4cf74de06051a4e64cbaed0f41e0 (patch)
treef9c224aae371cf4ea1218344c9b898290aa54d38 /java/src/IceInternal/Outgoing.java
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=276 (diff)
downloadice-5be7b412439b4cf74de06051a4e64cbaed0f41e0.tar.bz2
ice-5be7b412439b4cf74de06051a4e64cbaed0f41e0.tar.xz
ice-5be7b412439b4cf74de06051a4e64cbaed0f41e0.zip
release references to Ice objects ASAP
Diffstat (limited to 'java/src/IceInternal/Outgoing.java')
-rw-r--r--java/src/IceInternal/Outgoing.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/java/src/IceInternal/Outgoing.java b/java/src/IceInternal/Outgoing.java
index 914944dc420..1371fc76e5b 100644
--- a/java/src/IceInternal/Outgoing.java
+++ b/java/src/IceInternal/Outgoing.java
@@ -27,7 +27,7 @@ public final class Outgoing
}
//
- // This function allows this object to be reused, rather than
+ // These functions allow this object to be reused, rather than
// reallocated.
//
public void
@@ -37,15 +37,16 @@ public final class Outgoing
_state = StateUnsent;
_exception = null;
- assert(_is != null);
- _is.reset();
-
- assert(_os != null);
- _os.reset();
-
writeHeader(operation, mode, context);
}
+ public void
+ reclaim()
+ {
+ _is.reset();
+ _os.reset();
+ }
+
// Returns true if ok, false if user exception.
public boolean
invoke()