[Lldb-commits] [lldb] [lldb] Use Policy for ProcessRunLock re-entrancy (PR #195774)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri May 8 11:02:24 PDT 2026
================
@@ -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
More information about the lldb-commits
mailing list