rust/library
Matthias Krüger 1e39eb7d53
Rollup merge of #126953 - joboet:lazy_key, r=jhpratt
std: separate TLS key creation from TLS access

Currently, `std` performs an atomic load to get the OS key on every access to `StaticKey` even when the key is already known. This PR thus replaces `StaticKey` with the platform-specific `get` and `set` function and a new `LazyKey` type that acts as a `LazyLock<Key>`, allowing the reuse of the retreived key for multiple accesses.

Related to #110897.
2024-06-29 09:14:56 +02:00
..
alloc Rollup merge of #126970 - DaniPopes:simplify-str-clone_into, r=cuviper 2024-06-28 08:34:09 +02:00
backtrace@72265bea21
core Rollup merge of #127071 - Sky9x:remove-ptr-to-from-bits, r=scottmcm 2024-06-28 22:04:20 +02:00
panic_abort
panic_unwind
portable-simd
proc_macro
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #126953 - joboet:lazy_key, r=jhpratt 2024-06-29 09:14:56 +02:00
stdarch@df3618d9f3
sysroot
test
unwind