If we do not do that, only the next call of sendEvent will release
the shared pointer to the TCPConnectionHanlder in PacketID. This
might delay cleaning TCP objects up on not-so-busy threads.
Fixes #13422, thought it can still take a while on idle recursors,
as the housekeeping function is not called often in those cases.
if ((char*)&waiter < d_threads[d_tid].highestStackSeen) {
d_threads[d_tid].highestStackSeen = (char*)&waiter;
}
- key = d_eventkey;
+ key = std::move(d_eventkey);
return d_waitstatus;
}