about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-10-21 17:44:35 -0700
committerMark Rousskov <mark.simulacrum@gmail.com>2022-10-29 13:24:02 -0400
commit150eda3de16de9e0f79733f9a4ebb5eb6891cb26 (patch)
tree220b778c758b824cfe722c04f7ef4d3d97700851 /library/std/src/sys/unix/stack_overflow.rs
parent002ce8c9182668cdd8403860ea496a12ce031560 (diff)
downloadrust-150eda3de16de9e0f79733f9a4ebb5eb6891cb26.tar.gz
rust-150eda3de16de9e0f79733f9a4ebb5eb6891cb26.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 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions