rust/compiler/rustc_query_system/src
许杰友 Jieyou Xu (Joe) 927c11fcb7
Rollup merge of #137731 - SparrowLii:waiter, r=nnethercote
Resume one waiter at once in deadlock handler

When multiple query loop errors occur in the code, only one waiter should be resumed at a time to avoid waking up multiple waiters at the same time and causing deadlock due to thread grabbing.

This fixes the UI failures in #132051

cc `@Zoxc` `@cjgillot` `@nnethercote` `@bjorn3` `@Kobzol`

Zulip discussion [here](https://rust-lang.zulipchat.com/#narrow/channel/187679-t-compiler.2Fwg-parallel-rustc/topic/Deadlocks.20and.20Rayon)

Edit: We can't reproduce these bugs with the existing test suits, so we keep them until we merge #132051
UPDATES #129912
UPDATES #120757
UPDATES #129911
2025-03-05 21:46:45 +08:00
..
dep_graph Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
ich Introduce new parsing infrastructure and types for parsed attributes 2025-02-24 14:26:06 +01:00
query Rollup merge of #137731 - SparrowLii:waiter, r=nnethercote 2025-03-05 21:46:45 +08:00
cache.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
error.rs don't return an Option from try_find_dep_kind 2025-01-07 21:57:00 +01:00
lib.rs improve diagnostics for const eval query overflow 2025-01-06 09:43:05 +01:00
values.rs Value recovery can take the whole CycleError 2024-01-08 20:30:10 +00:00