Skip to content

Commit

Permalink
tsan: pass thr/pc to MemoryResetRange
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dvyukov committed Aug 5, 2021
1 parent c6a485c commit 3581616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/tsan/go/tsan_go.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 3581616

Please sign in to comment.