forked from OSchip/llvm-project
Revert "[tsan] Fix Darwin build after D106973"
It was invalid fix.
This reverts commit 6a0fe68844
.
This commit is contained in:
parent
6a0fe68844
commit
d42a06b200
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue