[compiler-rt] d42a06b - Revert "[tsan] Fix Darwin build after D106973"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 28 16:39:43 PDT 2021
Author: Vitaly Buka
Date: 2021-07-28T16:39:07-07:00
New Revision: d42a06b2006ec5838ab6b065353597ac7c7add72
URL: https://github.com/llvm/llvm-project/commit/d42a06b2006ec5838ab6b065353597ac7c7add72
DIFF: https://github.com/llvm/llvm-project/commit/d42a06b2006ec5838ab6b065353597ac7c7add72.diff
LOG: Revert "[tsan] Fix Darwin build after D106973"
It was invalid fix.
This reverts commit 6a0fe68844150f16e16fe64d050509e4ba740d98.
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
index b7d2a67fb8ff..2d400c7e7098 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
@@ -363,9 +363,9 @@ static uptr GetOrCreateSyncAddress(uptr addr, ThreadState *thr, uptr pc) {
static Map Addresses;
Map::Handle h(&Addresses, addr);
if (h.created()) {
- ThreadIgnoreBegin(thr, 0);
+ ThreadIgnoreBegin(thr, pc);
*h = (uptr) user_alloc(thr, pc, /*size=*/1);
- ThreadIgnoreEnd(thr);
+ ThreadIgnoreEnd(thr, pc);
}
return *h;
}
More information about the llvm-commits
mailing list