summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/lib/CodeGen/CodeGenPGO.cpp
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-04 22:35:43 +1000
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-13 15:47:31 +1000
commit1df85964a33a4ff037aa60915f3d1f24140a2a62 (patch)
treea476a2747aa2e519a4fd9c1d70570000bafb7619 /gnu/llvm/clang/lib/CodeGen/CodeGenPGO.cpp
parentRun all timeouts in process context (diff)
downloadwireguard-openbsd-1df85964a33a4ff037aa60915f3d1f24140a2a62.tar.xz
wireguard-openbsd-1df85964a33a4ff037aa60915f3d1f24140a2a62.zip
Replace timer lock with SMR
The lock was not used to protect any data structures, it was purely to ensure race-free setting of t_disabled. That is, that no other thread was halfway through any wg_timers_run_* function. With smr_* we can ensure this is still the case by calling smr_barrier() after setting t_disabled.
Diffstat (limited to 'gnu/llvm/clang/lib/CodeGen/CodeGenPGO.cpp')
0 files changed, 0 insertions, 0 deletions