================
@@ -22,6 +23,10 @@ ProcessRunLock::~ProcessRunLock() {
 }
 
 bool ProcessRunLock::ReadTryLock() {
+  Policy policy = PolicyStack::Get().Current();
+  if (policy.capabilities.holds_run_lock)
+    return !m_running;
----------------
JDevlieghere wrote:

This is a race: you are reading `m_running` outside the lock

https://github.com/llvm/llvm-project/pull/195774
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to