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 @@ -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) ) ) ) ;
You can’t perform that action at this time.
0 commit comments