rust/library/std/src/sys
bors 3701bdc633 Auto merge of #107329 - joboet:optimize_lazylock, r=m-ou-se
Optimize `LazyLock` size

The initialization function was unnecessarily stored separately from the data to be initialized. Since both cannot exist at the same time, a `union` can be used, with the `Once` acting as discriminant. This unfortunately requires some extra methods on `Once` so that `Drop` can be implemented correctly and efficiently.

`@rustbot` label +T-libs +A-atomic
2023-02-18 09:29:21 +00:00
..
common library/std/sys_common: Define MIN_ALIGN for m68k-unknown-linux-gnu 2023-01-21 12:00:14 +00:00
hermit Hermit: Remove floor symbol 2023-02-12 23:37:58 +01:00
itron Rollup merge of #106372 - joboet:solid_id_parking, r=m-ou-se 2023-02-16 11:40:19 +05:30
sgx std: rename Parker::new to Parker::new_in_place, add safe Parker::new constructor for SGX 2022-12-30 15:49:47 +01:00
solid Rollup merge of #106372 - joboet:solid_id_parking, r=m-ou-se 2023-02-16 11:40:19 +05:30
unix Rollup merge of #106001 - sdroege:glibc-skip-over-null-argv, r=ChrisDenton 2023-02-11 11:15:54 +05:30
unsupported std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
wasi Allow wasi-libc to initialize its environment variables lazily. 2023-02-09 19:03:42 -08:00
wasm std: use a more efficient Once on platforms without threads 2022-12-14 13:55:30 +01:00
windows Revert to using RtlGenRandom 2023-02-14 19:37:05 +00:00
mod.rs Reduce CString allocations in std as much as possible 2022-10-03 11:13:17 -07:00