about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-19 16:46:57 +0000
committerbors <bors@rust-lang.org>2022-12-19 16:46:57 +0000
commit7ab803891dd95a04f3b2143e40b26f03b608b4bc (patch)
treeb0c97298a5da599f84bbaf8bd3bd1805d6556b1d /compiler/rustc_codegen_llvm/src
parent4653c93e4442d88bf3278067183c8fdc0be74a1f (diff)
parentf9b56846ef42fa516c5fc53bce84835a5bc108a0 (diff)
downloadrust-7ab803891dd95a04f3b2143e40b26f03b608b4bc.tar.gz
rust-7ab803891dd95a04f3b2143e40b26f03b608b4bc.zip
Auto merge of #105698 - joboet:unsupported_threads_once, r=thomcc
Use a more efficient `Once` on platforms without threads

The current implementation uses an atomic queue and spins rather than panicking when calling `call_once` recursively. Since concurrency is not supported on platforms like WASM, `Once` can be implemented much more efficiently using just a single non-atomic state variable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions