about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-10-21 17:44:35 -0700
committerJosh Stone <jistone@redhat.com>2022-10-21 17:44:35 -0700
commit7280f3d28aa139cec0c75072a3e66294b7f99b59 (patch)
treee70a206bd8325936ae51c36d28f54ae5c4029435 /compiler/rustc_parse/src/parser/expr.rs
parent57e2c06a8df3187980801962015a88657abd033d (diff)
downloadrust-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