aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDrSergei <serzhdruzhok@gmail.com>2025-07-02 14:16:48 +0300
committerGitHub <noreply@github.com>2025-07-02 12:16:48 +0100
commit5fe63ae9a3fb7502ce7ed076ea14def97d79e85e (patch)
treef4f4b93c3fbcd26a6a2bcf456f2f289a2fcbf39b /clang/lib/Basic/SourceManager.cpp
parent585b41c2ecc0bf72b9956b86f1b19e21ff02259d (diff)
downloadllvm-5fe63ae9a3fb7502ce7ed076ea14def97d79e85e.zip
llvm-5fe63ae9a3fb7502ce7ed076ea14def97d79e85e.tar.gz
llvm-5fe63ae9a3fb7502ce7ed076ea14def97d79e85e.tar.bz2
[lldb-dap] Fix flaky test TestDAP_server (#145231)
This patch fixes a possible data race between main and event handler threads. Terminated event can be sent from `Disconnect` function or event handler. Consequently, there are some possible sequences of events. We must check events twice, because without getting an exited event, `exit_status` will be None. But, we don't know the order of events (for example, we can get terminated event before exited event), so we check events by filter. It is correct, because terminated event will be sent only once (guarded by `llvm::call_once`). This patch moved from [145010](https://github.com/llvm/llvm-project/pull/145010) and based on idea from this [comment](https://github.com/llvm/llvm-project/pull/145010#discussion_r2159637210).
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions