summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/IncomingBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/IncomingBase.java')
-rw-r--r--java/src/IceInternal/IncomingBase.java28
1 files changed, 15 insertions, 13 deletions
diff --git a/java/src/IceInternal/IncomingBase.java b/java/src/IceInternal/IncomingBase.java
index 64dc3639ff4..c9be07b844e 100644
--- a/java/src/IceInternal/IncomingBase.java
+++ b/java/src/IceInternal/IncomingBase.java
@@ -63,6 +63,21 @@ public class IncomingBase
}
//
+ // Do NOT use a finalizer, this would cause a severe performance
+ // penalty! We must make sure that __destroy() is called instead,
+ // to reclaim resources.
+ //
+ public void
+ __destroy()
+ {
+ if(_os != null)
+ {
+ _os.destroy();
+ _os = null;
+ }
+ }
+
+ //
// This function allows this object to be reused, rather than
// reallocated.
//
@@ -115,19 +130,6 @@ public class IncomingBase
_connection = connection;
}
- //
- // Reclaim resources.
- //
- public void
- __destroy()
- {
- if(_os != null)
- {
- _os.destroy();
- _os = null;
- }
- }
-
final protected void
__finishInvoke()
{