projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a485c
)
tsan: pass thr/pc to MemoryResetRange
author
Dmitry Vyukov
<dvyukov@google.com>
Thu, 5 Aug 2021 12:41:36 +0000
(14:41 +0200)
committer
Dmitry Vyukov
<dvyukov@google.com>
Thu, 5 Aug 2021 14:57:02 +0000
(16:57 +0200)
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
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/go/tsan_go.cpp
b/compiler-rt/lib/tsan/go/tsan_go.cpp
index
fa8ad16
..
104c5b3
100644
(file)
--- 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) {