diff options
| author | Gavin Li <gavinli@thegavinli.com> | 2022-12-03 21:54:38 -0800 |
|---|---|---|
| committer | Gavin Li <gavinli@thegavinli.com> | 2022-12-07 13:12:29 -0800 |
| commit | 3c55af5b09877c22405ed345c2873b9c5b33a20a (patch) | |
| tree | 1398e7c1d82036775e30dfbc5f2822fc91dc2303 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 2a39e45afba72fb2d456a02af4d290d16aebe621 (diff) | |
| download | rust-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_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
