diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2021-08-05 14:41:36 +0200 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2021-08-05 16:57:02 +0200 |
commit | 35816163f26b14122895ce0d0ea3b44e9d23ff3f (patch) | |
tree | 88b3631f6badf344d30212e5ed22066fd8c045db | |
parent | c6a485caf69326d2fd3300a4f8944889bdd189cd (diff) | |
download | llvm-35816163f26b14122895ce0d0ea3b44e9d23ff3f.tar.gz |
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
-rw-r--r-- | compiler-rt/lib/tsan/go/tsan_go.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/go/tsan_go.cpp b/compiler-rt/lib/tsan/go/tsan_go.cpp index fa8ad16bcd92..104c5b325aee 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) { |