forked from OSchip/llvm-project
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
This commit is contained in:
parent
c6a485caf6
commit
35816163f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue