about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-26 23:15:50 +0100
committerGitHub <noreply@github.com>2024-01-26 23:15:50 +0100
commit975a82b4e2f6faff274b9a4ae4a1f5fa9315d265 (patch)
tree75a2d91a08609c91f1802081897c604d9a5548e5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb31bf24908ef9e4b7e2236eaa133d3d22dbd5912 (diff)
parent27a6e6e67b6585e0f9bebc00617c22709c0d4a7e (diff)
downloadrust-975a82b4e2f6faff274b9a4ae4a1f5fa9315d265.tar.gz
rust-975a82b4e2f6faff274b9a4ae4a1f5fa9315d265.zip
Rollup merge of #120205 - Berrysoft:windows-alloc-init, r=ChrisDenton
std: make `HEAP` initializer never inline

The system allocator for Windows calls `init_or_get_process_heap` every time allocating. It generates very much useless code and makes the binary larger. The `HEAP` only needs to initialize once before the main fn.

Concerns:
* I'm not sure if `init` will be properly called in cdylib.
* Do we need to ensure the allocator works if the user enables `no_main`?
* Should we panic if `GetProcessHeap` returns null?
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions