diff options
| author | Josh Stone <jistone@redhat.com> | 2022-10-21 17:44:35 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-10-21 17:44:35 -0700 |
| commit | 7280f3d28aa139cec0c75072a3e66294b7f99b59 (patch) | |
| tree | e70a206bd8325936ae51c36d28f54ae5c4029435 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 57e2c06a8df3187980801962015a88657abd033d (diff) | |
| download | rust-7280f3d28aa139cec0c75072a3e66294b7f99b59.tar.gz rust-7280f3d28aa139cec0c75072a3e66294b7f99b59.zip | |
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.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
