[Lldb-commits] [PATCH] D154271: [lldb] Fix data race when interacting with python scripts
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 30 23:29:56 PDT 2023
bulbazord added a comment.
Making `m_lock_count`'s type into `std::atomic<uint32_t>` makes sense to me, but I'm a little confused about why `Process::LoadOperatingSystemPlugin` is guarded by acquiring `m_thread_mutex`. My (admittedly limited) understanding of that is that it's a mutex that the Process holds for the ThreadList to manage concurrent modifications to the thread list. Is loading an Operating System plugin related to modifying the ThreadList? If not, perhaps it would be better served by having its own mutex?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154271/new/
https://reviews.llvm.org/D154271
More information about the lldb-commits
mailing list