Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ee753a1

Browse files
rootroot
root
authored and
root
committedFeb 28, 2025
resume one waiter at a call
1 parent ce36a96 commit ee753a1

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_query_system/src/query

1 file changed

+5
-0
lines changed
 

‎compiler/rustc_query_system/src/query/job.rs

+5
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,11 @@ pub fn break_query_cycles(query_map: QueryMap, registry: &rayon_core::Registry)
488488
while jobs.len() > 0 {
489489
if remove_cycle(&query_map, &mut jobs, &mut wakelist) {
490490
found_cycle = true;
491+
492+
// FIXME: Resume all the waiters at once may cause deadlocks,
493+
// so we resume one waiter at a call for now.
494+
// Remove this when we figure out the real reason.
495+
break;
491496
}
492497
}
493498

0 commit comments

Comments
 (0)
Failed to load comments.