Files
rust/library/std/src
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
..
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-08-13 13:07:53 -06:00
2023-12-10 10:56:22 +08:00
2023-12-22 11:01:42 +01:00
2023-12-10 10:56:22 +08:00
2024-01-11 11:30:12 -05:00
2023-12-10 10:56:22 +08:00
2023-04-27 15:56:57 +02:00
2023-05-03 22:09:33 -07:00
2023-11-26 09:25:07 +08:00
2024-01-19 18:05:53 -05:00
2024-01-19 18:05:53 -05:00
2023-12-12 18:12:23 +08:00
2024-01-11 11:30:12 -05:00
2023-12-15 16:17:28 +00:00
2023-12-15 16:17:28 +00:00