File tree 1 file changed +4
-3
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
1257
1257
// Each LLVM module is automatically sent back to the coordinator for LTO if
1258
1258
// necessary. There's already optimizations in place to avoid sending work
1259
1259
// back to the coordinator if LTO isn't requested.
1260
- return B :: spawn_thread ( cgcx. time_trace , move || {
1260
+ return B :: spawn_named_thread ( cgcx. time_trace , "coordinator" . to_string ( ) , move || {
1261
1261
let mut worker_id_counter = 0 ;
1262
1262
let mut free_worker_ids = Vec :: new ( ) ;
1263
1263
let mut get_worker_id = |free_worker_ids : & mut Vec < usize > | {
@@ -1625,7 +1625,8 @@ fn start_executing_work<B: ExtraBackendMethods>(
1625
1625
modules : compiled_modules,
1626
1626
allocator_module : compiled_allocator_module,
1627
1627
} )
1628
- } ) ;
1628
+ } )
1629
+ . expect ( "failed to spawn coordinator thread" ) ;
1629
1630
1630
1631
// A heuristic that determines if we have enough LLVM WorkItems in the
1631
1632
// queue so that the main thread can do LLVM work instead of codegen
@@ -1758,7 +1759,7 @@ fn spawn_work<B: ExtraBackendMethods>(cgcx: CodegenContext<B>, work: WorkItem<B>
1758
1759
} )
1759
1760
} ;
1760
1761
} )
1761
- . expect ( "failed to spawn thread" ) ;
1762
+ . expect ( "failed to spawn work thread" ) ;
1762
1763
}
1763
1764
1764
1765
enum SharedEmitterMessage {
You can’t perform that action at this time.
0 commit comments