Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e58e3d5

Browse files
committed
bump default max parallelism up to 20
1 parent 7f95fa4 commit e58e3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/miri/src/bin/miri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ fn main() {
721721

722722
// Ensure we have parallelism for many-seeds mode.
723723
if many_seeds.is_some() && !rustc_args.iter().any(|arg| arg.starts_with("-Zthreads=")) {
724-
// Clamp to 10 threads; things get a lot less efficient beyond that due to lock contention.
725-
let threads = std::thread::available_parallelism().map_or(1, |n| n.get()).min(10);
724+
// Clamp to 20 threads; things get a less efficient beyond that due to lock contention.
725+
let threads = std::thread::available_parallelism().map_or(1, |n| n.get()).min(20);
726726
rustc_args.push(format!("-Zthreads={threads}"));
727727
}
728728
let many_seeds =

0 commit comments

Comments
 (0)