[PATCH] D55244: [compiler-rt] Use the new zx_futex_wait for Fuchsia sanitizer runtime

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 3 20:10:50 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT348236: [compiler-rt] Use the new zx_futex_wait for Fuchsia sanitizer runtime (authored by phosek, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55244?vs=176532&id=176542#toc

Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55244/new/

https://reviews.llvm.org/D55244

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,9 @@
   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_deprecated(
-        reinterpret_cast<zx_futex_t *>(m), MtxSleeping, ZX_TIME_INFINITE);
+    zx_status_t status =
+        _zx_futex_wait(reinterpret_cast<zx_futex_t *>(m), MtxSleeping,
+                       ZX_HANDLE_INVALID, 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: D55244.176542.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/890276fa/attachment.bin>


More information about the llvm-commits mailing list