summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-11-20 00:55:20 +0000
committerPetr Hosek <phosek@chromium.org>2018-11-20 00:55:20 +0000
commit8e0e35a3f5b7469f162ab14777e9cc22455214a0 (patch)
tree1703cfcb2e84082a1cb23e1c81cd9277736df0ca /compiler-rt
parenta36c444471044c89f89674769a011a9caab2d4b9 (diff)
downloadbcm5719-llvm-8e0e35a3f5b7469f162ab14777e9cc22455214a0.tar.gz
bcm5719-llvm-8e0e35a3f5b7469f162ab14777e9cc22455214a0.zip
[compiler-rt] Use zx_futex_wait_deprecated for Fuchsia sanitizer runtime
This change is part of the soft-transition to the new synchronization primitives which implement priority inheritance. Differential Revision: https://reviews.llvm.org/D54727 llvm-svn: 347279
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
index 5122efd874b..ee451f978eb 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -120,8 +120,8 @@ void BlockingMutex::Lock() {
if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked)
return;
while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) {
- zx_status_t status = _zx_futex_wait(reinterpret_cast<zx_futex_t *>(m),
- MtxSleeping, ZX_TIME_INFINITE);
+ zx_status_t status = _zx_futex_wait_deprecated(
+ reinterpret_cast<zx_futex_t *>(m), MtxSleeping, ZX_TIME_INFINITE);
if (status != ZX_ERR_BAD_STATE) // Normal race.
CHECK_EQ(status, ZX_OK);
}
OpenPOWER on IntegriCloud