Skip to content

Commit

Permalink
Rollup merge of rust-lang#103379 - cuviper:truncate-thread-name, r=th…
Browse files Browse the repository at this point in the history
…omcc

Truncate thread names on Linux and Apple targets

These targets have system limits on the thread names, 16 and 64 bytes
respectively, and `pthread_setname_np` returns an error if the name is
longer. However, we're not in a context that can propagate errors when
we call this, and we used to implicitly truncate on Linux with `prctl`,
so now we manually truncate these names ahead of time.

r? ``````@thomcc``````
  • Loading branch information
Dylan-DPC committed Oct 25, 2022
2 parents 9e2be77 + d792546 commit f7266cd
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f7266cd

Please sign in to comment.