tsan: faster memory reset for Go

llvm-svn: 168567
This commit is contained in:
Dmitry Vyukov 2012-11-25 16:05:42 +00:00
parent 2ad8df24ec
commit ce7a1ba196
1 changed files with 1 additions and 2 deletions

View File

@ -149,8 +149,7 @@ void __tsan_malloc(int goid, void *p, uptr sz, void *pc) {
if (thr == 0) // probably before __tsan_init()
return;
thr->in_rtl++;
MemoryResetRange(thr, (uptr)pc, (uptr)p, sz);
MemoryAccessRange(thr, (uptr)pc, (uptr)p, sz, true);
MemoryRangeImitateWrite(thr, (uptr)pc, (uptr)p, sz);
thr->in_rtl--;
}