Navigation Menu

Skip to content

Commit

Permalink
Name the threads in rayon's pool
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 7, 2019
1 parent 33c4125 commit fa2acbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_interface/util.rs
Expand Up @@ -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)
Expand Down

0 comments on commit fa2acbe

Please sign in to comment.