Skip to content

Commit

Permalink
resume one waiter at once
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Feb 28, 2025
1 parent 979f18e commit e8f1918
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_query_system/src/query/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ pub fn break_query_cycles(query_map: QueryMap, registry: &rayon_core::Registry)
while jobs.len() > 0 {
if remove_cycle(&query_map, &mut jobs, &mut wakelist) {
found_cycle = true;

// FIXME: Resume all the waiters at once may cause deadlocks,
// so we resume one waiter at a call for now.
// Remove this when we figure out the real reason.
break;
}
}

Expand Down

0 comments on commit e8f1918

Please sign in to comment.