diff options
| author | Petr Hosek <phosek@chromium.org> | 2018-11-20 00:55:20 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2018-11-20 00:55:20 +0000 |
| commit | 8e0e35a3f5b7469f162ab14777e9cc22455214a0 (patch) | |
| tree | 1703cfcb2e84082a1cb23e1c81cd9277736df0ca /compiler-rt | |
| parent | a36c444471044c89f89674769a011a9caab2d4b9 (diff) | |
| download | bcm5719-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.cc | 4 |
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); } |

