We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14684e commit 3aee29aCopy full SHA for 3aee29a
lldb/include/lldb/Target/ThreadPlanStack.h
@@ -159,12 +159,13 @@ class ThreadPlanStackMap {
159
160
// rename to ...?
161
std::vector<ThreadPlanStack> CleanUp() {
162
- std::vector<lldb::tid_t> invalidated_tids;
+ llvm::SmallVector<lldb::tid_t, 2> invalidated_tids;
163
for (auto &pair : m_plans_list)
164
if (pair.second.GetTID() != pair.first)
165
invalidated_tids.push_back(pair.first);
166
167
std::vector<ThreadPlanStack> detached_stacks;
168
+ detached_stacks.reserve(invalidated_tids.size());
169
for (auto tid : invalidated_tids) {
170
auto it = m_plans_list.find(tid);
171
auto stack = std::move(it->second);
0 commit comments