Skip to content

Commit d42a06b

Browse files
committed
Revert "[tsan] Fix Darwin build after D106973"
It was invalid fix. This reverts commit 6a0fe68.
1 parent 6a0fe68 commit d42a06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ static uptr GetOrCreateSyncAddress(uptr addr, ThreadState *thr, uptr pc) {
363363
static Map Addresses;
364364
Map::Handle h(&Addresses, addr);
365365
if (h.created()) {
366-
ThreadIgnoreBegin(thr, 0);
366+
ThreadIgnoreBegin(thr, pc);
367367
*h = (uptr) user_alloc(thr, pc, /*size=*/1);
368-
ThreadIgnoreEnd(thr);
368+
ThreadIgnoreEnd(thr, pc);
369369
}
370370
return *h;
371371
}

0 commit comments

Comments
 (0)