Skip to content

Commit 13fb97d

Browse files
committed
tsan: add missing guard for DumpProcessMap call
Add a missing "#if !SANITIZER_GO" guard for a call to DumpProcessMap in the Finalize hook (needed to build an updated Go race detector syso image). Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D128641
1 parent 45b995c commit 13fb97d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,10 @@ void MaybeSpawnBackgroundThread() {
722722
int Finalize(ThreadState *thr) {
723723
bool failed = false;
724724

725+
#if !SANITIZER_GO
725726
if (common_flags()->print_module_map == 1)
726727
DumpProcessMap();
728+
#endif
727729

728730
if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1)
729731
internal_usleep(u64(flags()->atexit_sleep_ms) * 1000);

0 commit comments

Comments
 (0)