about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-29 09:14:56 +0200
committerGitHub <noreply@github.com>2024-06-29 09:14:56 +0200
commit1e39eb7d5392b176bafda0b02724da5a71446d21 (patch)
treef9c46bf7bd88126e9ce4be65b8702fa74aff637d /compiler/rustc_lint/src
parent806c5c1971c96fcb0cf10a73bfe6d432fed744ba (diff)
parent65aea99dafd3d31fd2b962280049f69414190679 (diff)
downloadrust-1e39eb7d5392b176bafda0b02724da5a71446d21.tar.gz
rust-1e39eb7d5392b176bafda0b02724da5a71446d21.zip
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.
Diffstat (limited to 'compiler/rustc_lint/src')
0 files changed, 0 insertions, 0 deletions