about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-18 01:57:12 +0800
committerGitHub <noreply@github.com>2018-01-18 01:57:12 +0800
commit283ee544586a0952a9a45782f42addc9dbac3392 (patch)
treecf7a50767e57990ed20771382fbdf17c76de3104
parent3e49ada7528bf664b2ccc8516a9ef7d21849a70b (diff)
parentbdc34fd7f7691def549a062439415eb76edd5c8b (diff)
downloadrust-283ee544586a0952a9a45782f42addc9dbac3392.tar.gz
rust-283ee544586a0952a9a45782f42addc9dbac3392.zip
Rollup merge of #47302 - andjo403:commentfix, r=michaelwoerister
fix faulty comment

after #43506 there is no fixed number of request sent.
-rw-r--r--src/librustc_trans/back/write.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/librustc_trans/back/write.rs b/src/librustc_trans/back/write.rs
index 1ee04a46243..db0b045ef1e 100644
--- a/src/librustc_trans/back/write.rs
+++ b/src/librustc_trans/back/write.rs
@@ -1360,15 +1360,10 @@ fn start_executing_work(tcx: TyCtxt,
     let sess = tcx.sess;
 
     // First up, convert our jobserver into a helper thread so we can use normal
-    // mpsc channels to manage our messages and such. Once we've got the helper
-    // thread then request `n-1` tokens because all of our work items are ready
-    // to go.
-    //
-    // Note that the `n-1` is here because we ourselves have a token (our
-    // process) and we'll use that token to execute at least one unit of work.
-    //
-    // After we've requested all these tokens then we'll, when we can, get
-    // tokens on `rx` above which will get managed in the main loop below.
+    // mpsc channels to manage our messages and such.
+    // After we've requested tokens then we'll, when we can,
+    // get tokens on `coordinator_receive` which will
+    // get managed in the main loop below.
     let coordinator_send2 = coordinator_send.clone();
     let helper = jobserver.into_helper_thread(move |token| {
         drop(coordinator_send2.send(Box::new(Message::Token(token))));