diff options
| author | bors <bors@rust-lang.org> | 2022-10-13 06:49:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-13 06:49:29 +0000 |
| commit | fa0ca783f89a83046e6ce0383385ba5b28296435 (patch) | |
| tree | bdb171fd02b693ed091c393d4d284981c0b9b3f4 /compiler/rustc_parse/src | |
| parent | 3cf5fc58d56adeee42abb7e5059c718b0a86857d (diff) | |
| parent | d4578013541a5c6ae34b62a83e8dcb11fb6d4b05 (diff) | |
| download | rust-fa0ca783f89a83046e6ce0383385ba5b28296435.tar.gz rust-fa0ca783f89a83046e6ce0383385ba5b28296435.zip | |
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 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
