diff --git a/compiler-rt/lib/tsan/go/tsan_go.cpp b/compiler-rt/lib/tsan/go/tsan_go.cpp --- a/compiler-rt/lib/tsan/go/tsan_go.cpp +++ b/compiler-rt/lib/tsan/go/tsan_go.cpp @@ -210,7 +210,7 @@ CHECK(inited); if (thr && pc) ctx->metamap.AllocBlock(thr, pc, p, sz); - MemoryResetRange(0, 0, (uptr)p, sz); + MemoryResetRange(thr, pc, (uptr)p, sz); } void __tsan_free(uptr p, uptr sz) {