Revert "[tsan] Fix Darwin build after D106973"

It was invalid fix.

This reverts commit 6a0fe68844.
This commit is contained in:
Vitaly Buka 2021-07-28 16:39:07 -07:00
parent 6a0fe68844
commit d42a06b200
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}