about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-09-12 12:34:43 -0700
committerJosh Stone <jistone@redhat.com>2019-10-07 13:20:17 -0700
commitfa2acbe0d6ddec9d192df201f21ecc04b523a5ee (patch)
tree7e25e2d912d717916dfc6c36f6fc9b0954b43291 /src
parent33c4125fbe6204b4aedeaef281f819aee660b9fc (diff)
downloadrust-fa2acbe0d6ddec9d192df201f21ecc04b523a5ee.tar.gz
rust-fa2acbe0d6ddec9d192df201f21ecc04b523a5ee.zip
Name the threads in rayon's pool
Diffstat (limited to 'src')
-rw-r--r--src/librustc_interface/util.rs1
1 files changed, 1 insertions, 0 deletions
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<F: FnOnce() -> 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)