]> git.lizzy.rs Git - rust.git/commit
Auto merge of #100581 - joboet:sync_rwlock_everywhere, r=thomcc
authorbors <bors@rust-lang.org>
Tue, 20 Sep 2022 22:00:08 +0000 (22:00 +0000)
committerbors <bors@rust-lang.org>
Tue, 20 Sep 2022 22:00:08 +0000 (22:00 +0000)
commit7743aa836ee16d04831a34ee1ff109bf9d411277
tree37b1a918c3034feb6186b8eae63822113da4ce53
parent432abd86f231c908f6df3cdd779e83f35084be90
parentbe09a4a8b2eadddadc0f3c00e40917e254ba91ab
Auto merge of #100581 - joboet:sync_rwlock_everywhere, r=thomcc

std: use `sync::RwLock` for internal statics

Since `sync::RwLock` is now `const`-constructible, it can be used for internal statics, removing the need for `sys_common::StaticRwLock`. This adds some extra allocations on platforms which need to box their locks (currently SGX and some UNIX), but these will become unnecessary with the lock improvements tracked in #93740.