Commit 10bcf0c
authored
[lldb-dap] Destroy debugger when debug session terminates (#156231)
# Patch
Currently, in Server Mode (i.e. `--connection`), all debuggers are
destroyed when the **lldb-dap process** terminates. This causes logging
and release of resources to be delayed. This can also cause congestion
if multiple debuggers have the same destroy callbacks, which will fight
for the same resources (e.g. web requests) at the same time.
Instead, the debuggers can be destroyed as early as when the **debug
session** terminates. This way, logging and release of release of
resources can happen as soon as possible. Congestion can also be
naturally reduced, because it's unlikely that all debug sessions will
terminate at the same time.
# Tests
See PR #156231.1 parent 7bee9d9 commit 10bcf0c
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1072 | 1077 | | |
1073 | 1078 | | |
1074 | 1079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 233 | + | |
242 | 234 | | |
243 | 235 | | |
244 | 236 | | |
| |||
0 commit comments