about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorGavin Li <gavinli@thegavinli.com>2022-12-03 21:54:38 -0800
committerGavin Li <gavinli@thegavinli.com>2022-12-07 13:12:29 -0800
commit3c55af5b09877c22405ed345c2873b9c5b33a20a (patch)
tree1398e7c1d82036775e30dfbc5f2822fc91dc2303 /compiler/rustc_codegen_llvm/src/errors.rs
parent2a39e45afba72fb2d456a02af4d290d16aebe621 (diff)
downloadrust-3c55af5b09877c22405ed345c2873b9c5b33a20a.tar.gz
rust-3c55af5b09877c22405ed345c2873b9c5b33a20a.zip
Avoid heap allocation when truncating thread names
Ensure that heap allocation does not occur in a thread until std::thread
is ready. This fixes issues with custom allocators that call
std::thread::current(), since doing so prematurely initializes
THREAD_INFO and causes the following thread_info::set() to fail.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions