about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-15 22:49:30 +0000
committerbors <bors@rust-lang.org>2022-10-15 22:49:30 +0000
commitddc7fd983736bef0e610e02f5ef08955ecd562bb (patch)
tree3576fb11f3b5836059c8081fb43f5caffe13c8cd /compiler/rustc_codegen_gcc
parentb8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1 (diff)
parent2d2c9e44939d44e03bd6b9922b584ff09fb513e6 (diff)
downloadrust-ddc7fd983736bef0e610e02f5ef08955ecd562bb.tar.gz
rust-ddc7fd983736bef0e610e02f5ef08955ecd562bb.zip
Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc
std: use `sync::Mutex` for internal statics

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

I changed the program argument implementation on Hermit, it does not need `Mutex` but can use atomics like some UNIX systems (ping `@mkroening` `@stlankes).`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions