From fa2acbe0d6ddec9d192df201f21ecc04b523a5ee Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 12 Sep 2019 12:34:43 -0700 Subject: [PATCH] Name the threads in rayon's pool --- src/librustc_interface/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_interface/util.rs b/src/librustc_interface/util.rs index 35c325c1aa4..0c272f0c456 100644 --- a/src/librustc_interface/util.rs +++ b/src/librustc_interface/util.rs @@ -207,6 +207,7 @@ pub fn spawn_thread_pool R + Send, R: Send>( let gcx_ptr = &Lock::new(0); let mut config = ThreadPoolBuilder::new() + .thread_name(|_| "rustc".to_string()) .acquire_thread_handler(jobserver::acquire_thread) .release_thread_handler(jobserver::release_thread) .num_threads(threads)