Commit cef5dea
authored
Fix to allow entering cooperative GC mode when the thread is in a forbid-suspend-for-debugger region (#42587)
- Followup to #40060
- In short timing windows if a thread is placed in a pending-suspend-for-debugger state while in a forbid-suspend-for-debugger region, from the above PR it would not suspend for the debugger but it was missed that it can also get stuck in a perpetual spin-wait while entering cooperative GC mode. This causes the thread to not suspend for the debugger (VS times out after waiting) and the thread can only progress by unmarking it for debugger suspension.
- Fixed to break the spin-wait by checking whether the thread is in the forbid region
Fix for #42375 in master1 parent 3492460 commit cef5dea
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
2272 | | - | |
2273 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2274 | 2275 | | |
2275 | 2276 | | |
2276 | 2277 | | |
| |||
2361 | 2362 | | |
2362 | 2363 | | |
2363 | 2364 | | |
2364 | | - | |
| 2365 | + | |
| 2366 | + | |
2365 | 2367 | | |
2366 | 2368 | | |
2367 | 2369 | | |
| |||
0 commit comments