Skip to content

Commit 25cdd06

Browse files
committed
increase thread limit for many-seeds mode
1 parent bcda892 commit 25cdd06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/tools/miri/src/bin/miri.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ fn main() {
723723

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

0 commit comments

Comments
 (0)