Skip to content

Commit 8633429

Browse files
committed
Auto merge of #7848 - ehuss:beta-revert-jobserver, r=alexcrichton
[beta] Revert scalable jobserver. This reverts #7731, #7829, and #7836. This should prevent #7840 on beta. I feel more comfortable reverting this than merging #7844, since the impact is still unknown.
2 parents 9d32b7b + 77d6a52 commit 8633429

File tree

6 files changed

+170
-510
lines changed

6 files changed

+170
-510
lines changed

src/cargo/core/compiler/context/mod.rs

-23
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ pub struct Context<'a, 'cfg> {
6969
/// metadata files in addition to the rlib itself. This is only filled in
7070
/// when `pipelining` above is enabled.
7171
rmeta_required: HashSet<Unit<'a>>,
72-
73-
/// When we're in jobserver-per-rustc process mode, this keeps those
74-
/// jobserver clients for each Unit (which eventually becomes a rustc
75-
/// process).
76-
pub rustc_clients: HashMap<Unit<'a>, Client>,
7772
}
7873

7974
impl<'a, 'cfg> Context<'a, 'cfg> {
@@ -117,7 +112,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
117112
unit_dependencies,
118113
files: None,
119114
rmeta_required: HashSet::new(),
120-
rustc_clients: HashMap::new(),
121115
pipelining,
122116
})
123117
}
@@ -497,21 +491,4 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
497491
pub fn rmeta_required(&self, unit: &Unit<'a>) -> bool {
498492
self.rmeta_required.contains(unit) || self.bcx.config.cli_unstable().timings.is_some()
499493
}
500-
501-
pub fn new_jobserver(&mut self) -> CargoResult<Client> {
502-
let tokens = self.bcx.build_config.jobs as usize;
503-
let client = Client::new(tokens).chain_err(|| "failed to create jobserver")?;
504-
505-
// Drain the client fully
506-
for i in 0..tokens {
507-
client.acquire_raw().chain_err(|| {
508-
format!(
509-
"failed to fully drain {}/{} token from jobserver at startup",
510-
i, tokens,
511-
)
512-
})?;
513-
}
514-
515-
Ok(client)
516-
}
517494
}

0 commit comments

Comments
 (0)