Skip to content

Commit f6dd49f

Browse files
Merge pull request #11664 from felipepiovezan/felipe/fix_recursion
[lldb] Fix infinite recursion in OperatingSystemSwiftTasks::UpdateThreadList
2 parents 91361fa + da834fb commit f6dd49f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/OperatingSystem/SwiftTasks/OperatingSystemSwiftTasks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ OperatingSystemSwiftTasks::FindOrCreateSwiftThread(ThreadList &old_thread_list,
143143
uint64_t masked_task_id = TASK_MASK | task_id;
144144

145145
// If we already had a thread for this Task in the last stop, re-use it.
146-
if (ThreadSP old_thread = old_thread_list.FindThreadByID(masked_task_id);
146+
if (ThreadSP old_thread =
147+
old_thread_list.FindThreadByID(masked_task_id, /*can_update*/ false);
147148
IsOperatingSystemPluginThread(old_thread))
148149
return old_thread;
149150

0 commit comments

Comments
 (0)