From 492300a05a5e3c4c2ac2c21616e5fa0bc9740cbb Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 16 Feb 2023 15:29:43 -0700 Subject: [PATCH] #2092: message: fix missing moves --- src/vt/vrt/context/context_vrtmanager.impl.h | 4 ++-- tests/perf/make_runnable_micro.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vt/vrt/context/context_vrtmanager.impl.h b/src/vt/vrt/context/context_vrtmanager.impl.h index 5f75805da7..3e56aebbf2 100644 --- a/src/vt/vrt/context/context_vrtmanager.impl.h +++ b/src/vt/vrt/context/context_vrtmanager.impl.h @@ -167,7 +167,7 @@ messaging::PendingSend VirtualContextManager::sendSerialMsg( innermsg->setProxy(toProxy); theLocMan()->vrtContextLoc->routeMsgHandler< SerialMsgT, SerializedMessenger::payloadMsgHandler - >(toProxy, home_node, innermsg); + >(toProxy, home_node, std::move(innermsg)); return messaging::PendingSend(nullptr); }, // custom data transfer lambda if above the eager threshold @@ -279,7 +279,7 @@ messaging::PendingSend VirtualContextManager::sendMsg( [=](MsgPtr mymsg){ // route the message to the destination using the location manager auto msg_shared = promoteMsg(reinterpret_cast(mymsg.get())); - theLocMan()->vrtContextLoc->routeMsg(toProxy, home_node, msg_shared); + theLocMan()->vrtContextLoc->routeMsg(toProxy, home_node, std::move(msg_shared)); } ); } diff --git a/tests/perf/make_runnable_micro.cc b/tests/perf/make_runnable_micro.cc index 9991d630e9..8f16c2d7bb 100644 --- a/tests/perf/make_runnable_micro.cc +++ b/tests/perf/make_runnable_micro.cc @@ -87,7 +87,7 @@ struct NodeObj { void perfRunBenchmark() { for (int i = 0; i < num_iters; i++) { - auto r = runnable::makeRunnable(msgs[i], false, han, 0) + auto r = runnable::makeRunnable(std::move(msgs[i]), false, han, 0) .withContinuation(nullptr) .withTDEpochFromMsg(false); r.enqueue();