File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -1363,15 +1363,10 @@ fn start_executing_work(tcx: TyCtxt,
13631363 let sess = tcx. sess ;
13641364
13651365 // First up, convert our jobserver into a helper thread so we can use normal
1366- // mpsc channels to manage our messages and such. Once we've got the helper
1367- // thread then request `n-1` tokens because all of our work items are ready
1368- // to go.
1369- //
1370- // Note that the `n-1` is here because we ourselves have a token (our
1371- // process) and we'll use that token to execute at least one unit of work.
1372- //
1373- // After we've requested all these tokens then we'll, when we can, get
1374- // tokens on `rx` above which will get managed in the main loop below.
1366+ // mpsc channels to manage our messages and such.
1367+ // After we've requested tokens then we'll, when we can,
1368+ // get tokens on `coordinator_receive` which will
1369+ // get managed in the main loop below.
13751370 let coordinator_send2 = coordinator_send. clone ( ) ;
13761371 let helper = jobserver. into_helper_thread ( move |token| {
13771372 drop ( coordinator_send2. send ( Box :: new ( Message :: Token ( token) ) ) ) ;
You can’t perform that action at this time.
0 commit comments