llvm-project
a0176fd9 - [lldb] Fix data race in ObjectFile::GetSectionList (#197812)

Commit
184 days ago
[lldb] Fix data race in ObjectFile::GetSectionList (#197812) The early `m_sections_up == nullptr` check was performed outside the module mutex, so two threads sharing the same Module could both enter the branch and race on the write in CreateSections. Restructure so the check and populate both happen under the module mutex; this is a standard double-checked locking fix. Found by ThreadSanitizer as part of #197792.
Author
Parents
Loading