Revert "Auto merge of #67362 - Mark-Simulacrum:par-4-default, r=alexcrichton"
This reverts commit3ed3b8bb7b, reversing changes made to99b89533d4. We will reland a similar patch at a future date but for now we should get a nightly released in a few hours with the parallel patch, so this should be reverted to make sure that the next nightly is not parallel-enabled.
This commit is contained in:
parent
3ed3b8bb7b
commit
7f00a5f26a
9 changed files with 50 additions and 36 deletions
|
|
@ -1358,11 +1358,11 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
|
|||
"prints the LLVM optimization passes being run"),
|
||||
ast_json: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print the AST as JSON and halt"),
|
||||
// We default to min(4, vCPUs) here since we want to avoid spawning *too*
|
||||
// many threads -- that causes scalability issues due to contention on
|
||||
// the jobserver pipe (at least) -- but 4 is a reasonable amount on systems
|
||||
// with lots of cores.
|
||||
threads: usize = (std::cmp::min(::num_cpus::get(), 4), parse_threads, [UNTRACKED],
|
||||
// We default to 1 here since we want to behave like
|
||||
// a sequential compiler for now. This'll likely be adjusted
|
||||
// in the future. Note that -Zthreads=0 is the way to get
|
||||
// the num_cpus behavior.
|
||||
threads: usize = (1, parse_threads, [UNTRACKED],
|
||||
"use a thread pool with N threads"),
|
||||
ast_json_noexpand: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print the pre-expansion AST as JSON and halt"),
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use rustc_errors::ErrorReported;
|
|||
|
||||
use rustc_data_structures::base_n;
|
||||
use rustc_data_structures::sync::{
|
||||
self, Lrc, Lock, OneThread, Once, AtomicUsize, Ordering,
|
||||
self, Lrc, Lock, OneThread, Once, AtomicU64, AtomicUsize, Ordering,
|
||||
Ordering::SeqCst,
|
||||
};
|
||||
use rustc_data_structures::impl_stable_hash_via_hash;
|
||||
|
|
@ -119,7 +119,7 @@ pub struct Session {
|
|||
/// If `-zprint-fuel=crate`, `Some(crate)`.
|
||||
pub print_fuel_crate: Option<String>,
|
||||
/// Always set to zero and incremented so that we can print fuel expended by a crate.
|
||||
pub print_fuel: AtomicUsize,
|
||||
pub print_fuel: AtomicU64,
|
||||
|
||||
/// Loaded up early on in the initialization of this `Session` to avoid
|
||||
/// false positives about a job server in our environment.
|
||||
|
|
@ -1116,7 +1116,7 @@ fn build_session_(
|
|||
out_of_fuel: false,
|
||||
});
|
||||
let print_fuel_crate = sopts.debugging_opts.print_fuel.clone();
|
||||
let print_fuel = AtomicUsize::new(0);
|
||||
let print_fuel = AtomicU64::new(0);
|
||||
|
||||
let working_dir = env::current_dir().unwrap_or_else(|e|
|
||||
parse_sess.span_diagnostic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue