Skip to content

Commit fa2acbe

Browse files
committed
Name the threads in rayon's pool
1 parent 33c4125 commit fa2acbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_interface/util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>(
207207
let gcx_ptr = &Lock::new(0);
208208

209209
let mut config = ThreadPoolBuilder::new()
210+
.thread_name(|_| "rustc".to_string())
210211
.acquire_thread_handler(jobserver::acquire_thread)
211212
.release_thread_handler(jobserver::release_thread)
212213
.num_threads(threads)

0 commit comments

Comments
 (0)