about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-10 15:01:44 +0100
committerGitHub <noreply@github.com>2022-12-10 15:01:44 +0100
commit43bee03a677f1a942dabe872d7e2965659c73e27 (patch)
treed81607a5ef19f806ff3380964f4cf579d6b0fdbd /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentb66e123677ac5f4fade3bb67888f8f40f0bb28ec (diff)
parent3c55af5b09877c22405ed345c2873b9c5b33a20a (diff)
downloadrust-43bee03a677f1a942dabe872d7e2965659c73e27.tar.gz
rust-43bee03a677f1a942dabe872d7e2965659c73e27.zip
Rollup merge of #105239 - gh2o:no-heap-alloc-on-thread-start, r=cuviper
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