diff options
| author | bors <bors@rust-lang.org> | 2022-11-04 17:36:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-04 17:36:44 +0000 |
| commit | 4492c029eff7b42e91e759576ab0c7ca88f873dc (patch) | |
| tree | a94783f1d3d65ad06960b1418ca3d141efcb0f90 /compiler/rustc_codegen_llvm/src | |
| parent | 9d9157e333624ed748564fecbcc528f03210850f (diff) | |
| parent | cb6f7a6a84e3e808fa95a1206843a96f8b9ff44d (diff) | |
| download | rust-4492c029eff7b42e91e759576ab0c7ca88f873dc.tar.gz rust-4492c029eff7b42e91e759576ab0c7ca88f873dc.zip | |
Auto merge of #2641 - DrMeepster:init_once_acquire, r=RalfJung
InitOnce: synchronize with completion when already complete The completion of an InitOnce happens-before the threads waiting on it wake up. However, this is not the case for threads that call `InitOnceBeginInitialize` after the completion, leading to data races and outdated weak memory loads as observed in the CI for #2638. This PR fixes this.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
