summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-13 06:49:29 +0000
committerbors <bors@rust-lang.org>2022-10-13 06:49:29 +0000
commitfa0ca783f89a83046e6ce0383385ba5b28296435 (patch)
treebdb171fd02b693ed091c393d4d284981c0b9b3f4 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent3cf5fc58d56adeee42abb7e5059c718b0a86857d (diff)
parentd4578013541a5c6ae34b62a83e8dcb11fb6d4b05 (diff)
downloadrust-fa0ca783f89a83046e6ce0383385ba5b28296435.tar.gz
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
Optimize TLS on Windows This implements the suggestion in the current TLS code to embed the linked list of destructors in the `StaticKey` structure to save allocations. Additionally, locking is avoided when no destructor needs to be run. By using one Windows-provided `Once` per key instead of a global lock, locking is more finely-grained (this unblocks #100579).
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions