diff options
author | John Harrison <harjohn@google.com> | 2025-04-16 07:52:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 07:52:16 -0700 |
commit | 183cb45c1280b80a0022649d1db8a93544bb97b0 (patch) | |
tree | 7d86ad4c68124148a2f06843042f37db4108f368 /clang/lib/Sema/SemaModule.cpp | |
parent | 9483aaaaaa427b5dcb9a7af8f232a4696eef94bf (diff) | |
download | llvm-183cb45c1280b80a0022649d1db8a93544bb97b0.zip llvm-183cb45c1280b80a0022649d1db8a93544bb97b0.tar.gz llvm-183cb45c1280b80a0022649d1db8a93544bb97b0.tar.bz2 |
[lldb-dap] Fixing a race during disconnect. (#135872)
While attempting to disconnect the DAP transport reader thread is
setting
`disconnecting` as soon as it sees a [disconnect
request](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disconnect).
However, if it is processing another request when this disconnect
arrives the `DAP::Loop` handler may exit the loop without replying to
the disconnect request.
There has been some instability on the CI jobs due to this race, for
example https://lab.llvm.org/buildbot/#/builders/59/builds/16076
To address this, ensure we only return from `DAP::Loop` once we've
emptied the queue.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions