granite-rust/library/std
Matthias Krüger 975a82b4e2
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?
2024-01-26 23:15:50 +01:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Rollup merge of #120205 - Berrysoft:windows-alloc-init, r=ChrisDenton 2024-01-26 23:15:50 +01:00
tests Add test of thread_local containing multiline const block 2024-01-20 19:00:27 -08:00
build.rs zkvm: add partial std support 2024-01-22 10:15:11 -08:00
Cargo.toml Update compiler_builtins to 0.1.105 2024-01-09 20:30:56 -08:00