diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-10 15:01:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-10 15:01:44 +0100 |
| commit | 43bee03a677f1a942dabe872d7e2965659c73e27 (patch) | |
| tree | d81607a5ef19f806ff3380964f4cf579d6b0fdbd /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | b66e123677ac5f4fade3bb67888f8f40f0bb28ec (diff) | |
| parent | 3c55af5b09877c22405ed345c2873b9c5b33a20a (diff) | |
| download | rust-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
