tsan: treat malloc() as memory access in Go
llvm-svn: 160289
This commit is contained in:
parent
5bfac97ff9
commit
3abd096370
|
@ -192,6 +192,7 @@ void __tsan_event(int typ, int tid, void *pc, void *addr, int info) {
|
|||
case MALLOC:
|
||||
thr->in_rtl++;
|
||||
MemoryResetRange(thr, (uptr)pc, (uptr)addr, (uptr)info);
|
||||
MemoryAccessRange(thr, (uptr)pc, (uptr)addr, (uptr)info, true);
|
||||
thr->in_rtl--;
|
||||
break;
|
||||
case FREE:
|
||||
|
|
Loading…
Reference in New Issue