From a2d34e1ec452a7b9894fe1d6e7b9363a8d2497f5 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Fri, 8 Mar 2002 18:34:41 +0000 Subject: initial performance fixes --- cpp/src/slice2java/Gen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpp/src/slice2java/Gen.cpp') diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 70957275b12..36b617e0b13 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -2742,6 +2742,8 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) 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 << "try"; + out << sb; if (!inParams.empty()) { out << nl << "IceInternal.BasicStream __os = __out.os();"; @@ -2823,6 +2825,12 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "return __ret;"; } + out << eb; + out << nl << "finally"; + out << sb; + out << nl << "__out.destroy();"; + out << eb; + out << eb; } -- cgit v1.2.3