[Lldb-commits] [lldb] [lldb] Avoid data race when clearing an OptionValue (PR #208471)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 10 05:58:56 PDT 2026
================
@@ -67,6 +61,12 @@ class OptionValueFileSpecList
protected:
lldb::OptionValueSP Clone() const override;
+ void ClearImpl() override {
+ std::lock_guard<std::recursive_mutex> lock(m_mutex);
----------------
da-viper wrote:
Dropped the mutex in `OptionFileSpecList` and make the `OptionValue` mutex recursive to accommodate this.
https://github.com/llvm/llvm-project/pull/208471
More information about the lldb-commits
mailing list