diff options
| author | bors <bors@rust-lang.org> | 2022-12-19 16:46:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-19 16:46:57 +0000 |
| commit | 7ab803891dd95a04f3b2143e40b26f03b608b4bc (patch) | |
| tree | b0c97298a5da599f84bbaf8bd3bd1805d6556b1d /compiler/rustc_codegen_llvm/src | |
| parent | 4653c93e4442d88bf3278067183c8fdc0be74a1f (diff) | |
| parent | f9b56846ef42fa516c5fc53bce84835a5bc108a0 (diff) | |
| download | rust-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
