Skip to content

Commit 345cec8

Browse files
committed
Auto merge of #158357 - petrochenkov:benchsync, r=<try>
[experiment] Benchmark `-Zthreads=sync` on rustc-perf benchmarks
2 parents f28ac76 + 164e608 commit 345cec8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ pub mod parse {
11051105
// We want to cap the number of threads here to avoid large numbers like 999999 and compiler panics.
11061106
// This solution was suggested here https://github.com/rust-lang/rust/issues/117638#issuecomment-1800925067
11071107
let n = n.min(MAX_THREADS_CAP);
1108-
*slot = (n > 1).then_some(n); // Enable synchronization if we're using more than one thread.
1108+
*slot = Some(n);
11091109
true
11101110
}
11111111

0 commit comments

Comments
 (0)