summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SemanticHandler.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-14 21:02:14 +0000
committerAlan Conway <aconway@apache.org>2007-11-14 21:02:14 +0000
commitb7c4bf711917dc5ae07fafea32d9d530d2383735 (patch)
treed187fc43d3d0a2153d1b8c2a5ab3e55261285e9d /cpp/src/qpid/broker/SemanticHandler.cpp
parent30e952c5e9e7084eb70633a543034fbc897a22b8 (diff)
downloadqpid-python-b7c4bf711917dc5ae07fafea32d9d530d2383735.tar.gz
Replaced shared_ptr with intrusive_ptr for qpid::Broker::Message.
Gives 9% reduction in broker heap use (perftest --count 100000.) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@595056 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticHandler.cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SemanticHandler.cpp b/cpp/src/qpid/broker/SemanticHandler.cpp
index d6e13e0a55..ba43b5ecba 100644
--- a/cpp/src/qpid/broker/SemanticHandler.cpp
+++ b/cpp/src/qpid/broker/SemanticHandler.cpp
@@ -146,7 +146,7 @@ void SemanticHandler::handleL3(framing::AMQMethodBody* method)
void SemanticHandler::handleContent(AMQFrame& frame)
{
- Message::shared_ptr msg(msgBuilder.getMessage());
+ intrusive_ptr<Message> msg(msgBuilder.getMessage());
if (!msg) {//start of frameset will be indicated by frame flags
msgBuilder.start(incoming.next());
msg = msgBuilder.getMessage();