about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-05 13:15:57 +0200
committerGitHub <noreply@github.com>2024-10-05 13:15:57 +0200
commit92beb42f6438925bce3458a1377407b4e4309202 (patch)
tree58b402698c07d25f953a628aced8b425cf94db0c /compiler/rustc_mir_transform/src/coverage/counters.rs
parent386a0baecbcaf3d812c6cb7f2da4cb754379b19f (diff)
parentc1acccdf1744561d4dda9b943fa91d873cea3b40 (diff)
downloadrust-92beb42f6438925bce3458a1377407b4e4309202.tar.gz
rust-92beb42f6438925bce3458a1377407b4e4309202.zip
Rollup merge of #131094 - joboet:lazy_once_box, r=ibraheemdev
std: replace `LazyBox` with `OnceBox`

This PR replaces the `LazyBox` wrapper used to allocate the pthread primitives with `OnceBox`, which has a more familiar API mirroring that of `OnceLock`. This cleans up the code in preparation for larger changes like #128184 (from which this PR was split) and allows some neat optimizations, like avoid an acquire-load of the allocation pointer in `Mutex::unlock`, where the initialization of the allocation must have already been observed.

Additionally, I've gotten rid of the TEEOS `Condvar` code, it's just a duplicate of the pthread one anyway and I didn't want to repeat myself.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions