[Lldb-commits] [PATCH] D157041: [lldb] Protect OptionValue accesses from data races

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 3 16:25:31 PDT 2023


kastiglione added inline comments.


================
Comment at: lldb/source/Interpreter/OptionValue.cpp:49
+  std::lock_guard<std::recursive_mutex> lock(m_mutex);
   if (GetType() == OptionValue::eTypeBoolean)
     return static_cast<OptionValueBoolean *>(this);
----------------
do these GetAsX functions need to lock?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157041/new/

https://reviews.llvm.org/D157041



More information about the lldb-commits mailing list