[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 18:54:52 PST 2018
phosek created this revision.
phosek added reviewers: mcgrathr, jakehehrlich.
Herald added subscribers: Sanitizers, llvm-commits, dberris, kubamracek.
This finishes the soft-transition to the new primitive that implements
priority inheritance.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D55244
Files:
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
Index: compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/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.176532.patch
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/72637747/attachment.bin>
More information about the llvm-commits
mailing list