[PATCH] D54727: [compiler-rt] Use zx_futex_wait_deprecated for Fuchsia sanitizer runtime
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 19 16:58:10 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT347279: [compiler-rt] Use zx_futex_wait_deprecated for Fuchsia sanitizer runtime (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D54727?vs=174683&id=174712#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D54727
Files:
lib/sanitizer_common/sanitizer_fuchsia.cc
Index: lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- lib/sanitizer_common/sanitizer_fuchsia.cc
+++ lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -120,8 +120,8 @@
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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54727.174712.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181120/cf1f8d1f/attachment.bin>
More information about the llvm-commits
mailing list