Skip to content

Commit ff8621b

Browse files
Merge #9532
9532: Shorten thread names r=lnicola a=weirdsmiley Threads on Linux have an upper limit of 16 characters, hence dropping `Thread` from their names. Co-authored-by: Manas <[email protected]>
2 parents e44c56b + f5c9407 commit ff8621b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

crates/flycheck/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl FlycheckHandle {
6868
let actor = FlycheckActor::new(id, sender, config, workspace_root);
6969
let (sender, receiver) = unbounded::<Restart>();
7070
let thread = jod_thread::Builder::new()
71-
.name("FlycheckThread".to_owned())
71+
.name("Flycheck".to_owned())
7272
.spawn(move || actor.run(receiver))
7373
.expect("failed to spawn thread");
7474
FlycheckHandle { sender, thread }
@@ -270,7 +270,7 @@ impl CargoHandle {
270270
let (sender, receiver) = unbounded();
271271
let actor = CargoActor::new(child_stdout, sender);
272272
let thread = jod_thread::Builder::new()
273-
.name("CargoHandleThread".to_owned())
273+
.name("CargoHandle".to_owned())
274274
.spawn(move || actor.run())
275275
.expect("failed to spawn thread");
276276
CargoHandle { child, thread, receiver }

crates/proc_macro_api/src/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl ProcMacroProcessSrv {
3838

3939
let (task_tx, task_rx) = bounded(0);
4040
let handle = jod_thread::Builder::new()
41-
.name("ProcMacroClientThread".to_owned())
41+
.name("ProcMacroClient".to_owned())
4242
.spawn(move || {
4343
client_loop(task_rx, process);
4444
})

crates/proc_macro_srv/src/proc_macro/bridge/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl ExecutionStrategy for CrossThread1 {
182182
let (res_tx, res_rx) = channel();
183183

184184
let join_handle = thread::Builder::new()
185-
.name("DispatchThread".to_owned())
185+
.name("Dispatch".to_owned())
186186
.spawn(move || {
187187
let mut dispatch = |b| {
188188
req_tx.send(b).unwrap();
@@ -231,7 +231,7 @@ impl ExecutionStrategy for CrossThread2 {
231231
let server_thread = thread::current();
232232
let state2 = state.clone();
233233
let join_handle = thread::Builder::new()
234-
.name("ServerThread".to_owned())
234+
.name("ProcMacroServer".to_owned())
235235
.spawn(move || {
236236
let mut dispatch = |b| {
237237
*state2.lock().unwrap() = State::Req(b);

crates/vfs-notify/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl loader::Handle for NotifyHandle {
3232
let actor = NotifyActor::new(sender);
3333
let (sender, receiver) = unbounded::<Message>();
3434
let thread = jod_thread::Builder::new()
35-
.name("LoaderThread".to_owned())
35+
.name("VfsLoader".to_owned())
3636
.spawn(move || actor.run(receiver))
3737
.expect("failed to spawn thread");
3838
NotifyHandle { sender, thread }

0 commit comments

Comments
 (0)