From 35816163f26b14122895ce0d0ea3b44e9d23ff3f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 5 Aug 2021 14:41:36 +0200 Subject: [PATCH] tsan: pass thr/pc to MemoryResetRange Pass thr/pc args to MemoryResetRange as we do everywhere. Currently they are unused by MemoryResetRange, but there is no reason to be inconsistent. Depends on D107562. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107563 --- compiler-rt/lib/tsan/go/tsan_go.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/go/tsan_go.cpp b/compiler-rt/lib/tsan/go/tsan_go.cpp index fa8ad16bcd928..104c5b325aee5 100644 --- a/compiler-rt/lib/tsan/go/tsan_go.cpp +++ b/compiler-rt/lib/tsan/go/tsan_go.cpp @@ -210,7 +210,7 @@ void __tsan_malloc(ThreadState *thr, uptr pc, uptr p, uptr sz) { 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) {