summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-03-14 22:26:07 +0000
committerMark Spruiell <mes@zeroc.com>2002-03-14 22:26:07 +0000
commitdc78698d0ae8e548d740b410de1e3afacaf59cfa (patch)
treef37e3f53491a34d1198f66a0651066296fd8493e /cpp/src/slice2java/Gen.cpp
parentmore performance enhancements (diff)
downloadice-dc78698d0ae8e548d740b410de1e3afacaf59cfa.tar.bz2
ice-dc78698d0ae8e548d740b410de1e3afacaf59cfa.tar.xz
ice-dc78698d0ae8e548d740b410de1e3afacaf59cfa.zip
more performance fixes
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index 74bbfb91126..16046409367 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -2740,8 +2740,8 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p)
out << sb;
list<string> metaData = op->getMetaData();
bool nonmutating = find(metaData.begin(), metaData.end(), "nonmutating") != metaData.end();
- out << nl << "IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, \""
- << op->name() << "\", " << (nonmutating ? "true" : "false") << ", __context);";
+ out << nl << "IceInternal.Outgoing __out = getOutgoing(\"" << op->name() << "\", "
+ << (nonmutating ? "true" : "false") << ", __context);";
out << nl << "try";
out << sb;
if (!inParams.empty())
@@ -2828,7 +2828,7 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p)
out << eb;
out << nl << "finally";
out << sb;
- out << nl << "__out.destroy();";
+ out << nl << "reclaimOutgoing(__out);";
out << eb;
out << eb;