tsan: treat malloc() as memory access in Go

llvm-svn: 160289
This commit is contained in:
Dmitry Vyukov 2012-07-16 16:55:01 +00:00
parent 5bfac97ff9
commit 3abd096370
1 changed files with 1 additions and 0 deletions

View File

@ -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: