about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-25 20:34:46 -0400
committerGitHub <noreply@github.com>2025-03-25 20:34:46 -0400
commit8b61871eda5f30057e44e0cee359951f22e97cbd (patch)
tree0953888442128a242d56e43fa573ddd4556134dc /compiler/rustc_pattern_analysis/src
parenta883b23ef57fa84a34fe4c4d65ca15544c748fc0 (diff)
parent38c39ffc6c6e19867f450c7204f341aeb0c495ec (diff)
downloadrust-8b61871eda5f30057e44e0cee359951f22e97cbd.tar.gz
rust-8b61871eda5f30057e44e0cee359951f22e97cbd.zip
Rollup merge of #138874 - Zoxc:waiter-race, r=SparrowLii,davidtwco
Batch mark waiters as unblocked when resuming in the deadlock handler

This fixes a race when resuming multiple threads to resolve query cycles. This now marks all threads as unblocked before resuming  any of them. Previously if one was resumed and marked as unblocked at a time. The first thread resumed could fall asleep then Rayon would detect a second false deadlock. Later the initial deadlock handler thread would resume further threads.

This also reverts the workaround added in https://github.com/rust-lang/rust/pull/137731.

cc `@SparrowLii` `@lqd`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions