[tsan] Fix Darwin build after D106973

This commit is contained in:
Vitaly Buka 2021-07-28 16:36:12 -07:00
parent 97851a08e2
commit 6a0fe68844
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, pc);
ThreadIgnoreBegin(thr, 0);
*h = (uptr) user_alloc(thr, pc, /*size=*/1);
ThreadIgnoreEnd(thr, pc);
ThreadIgnoreEnd(thr);
}
return *h;
}