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-11-04 17:36:44 +0000
committerbors <bors@rust-lang.org>2022-11-04 17:36:44 +0000
commit4492c029eff7b42e91e759576ab0c7ca88f873dc (patch)
treea94783f1d3d65ad06960b1418ca3d141efcb0f90 /compiler/rustc_codegen_llvm/src
parent9d9157e333624ed748564fecbcc528f03210850f (diff)
parentcb6f7a6a84e3e808fa95a1206843a96f8b9ff44d (diff)
downloadrust-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