Skip to content

Commit bca76c1

Browse files
Rollup merge of rust-lang#47302 - andjo403:commentfix, r=michaelwoerister
fix faulty comment after rust-lang#43506 there is no fixed number of request sent.
2 parents 1118473 + bdc34fd commit bca76c1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/librustc_trans/back/write.rs

+4-9
Original file line numberDiff line numberDiff line change
@@ -1360,15 +1360,10 @@ fn start_executing_work(tcx: TyCtxt,
13601360
let sess = tcx.sess;
13611361

13621362
// First up, convert our jobserver into a helper thread so we can use normal
1363-
// mpsc channels to manage our messages and such. Once we've got the helper
1364-
// thread then request `n-1` tokens because all of our work items are ready
1365-
// to go.
1366-
//
1367-
// Note that the `n-1` is here because we ourselves have a token (our
1368-
// process) and we'll use that token to execute at least one unit of work.
1369-
//
1370-
// After we've requested all these tokens then we'll, when we can, get
1371-
// tokens on `rx` above which will get managed in the main loop below.
1363+
// mpsc channels to manage our messages and such.
1364+
// After we've requested tokens then we'll, when we can,
1365+
// get tokens on `coordinator_receive` which will
1366+
// get managed in the main loop below.
13721367
let coordinator_send2 = coordinator_send.clone();
13731368
let helper = jobserver.into_helper_thread(move |token| {
13741369
drop(coordinator_send2.send(Box::new(Message::Token(token))));

0 commit comments

Comments
 (0)