[compiler-rt] 356ecd9 - tsan: remove DontDumpShadow from Go build
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 01:45:10 PDT 2021
Author: Dmitry Vyukov
Date: 2021-09-23T10:45:05+02:00
New Revision: 356ecd9bd1c5c10ff776dced80f353839fafb354
URL: https://github.com/llvm/llvm-project/commit/356ecd9bd1c5c10ff776dced80f353839fafb354
DIFF: https://github.com/llvm/llvm-project/commit/356ecd9bd1c5c10ff776dced80f353839fafb354.diff
LOG: tsan: remove DontDumpShadow from Go build
DontDumpShadow is used only in InitializeShadowMemory which is Go-only.
Depends on D110263.
Reviewed By: melver
Differential Revision: https://reviews.llvm.org/D110264
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
index 55c2919ca4e08..763ac444377e0 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
@@ -31,6 +31,7 @@ static const char kShadowMemoryMappingHint[] =
"HINT: if %s is not supported in your environment, you may set "
"TSAN_OPTIONS=%s=0\n";
+# if !SANITIZER_GO
static void DontDumpShadow(uptr addr, uptr size) {
if (common_flags()->use_madv_dontdump)
if (!DontDumpShadowMemory(addr, size)) {
@@ -41,7 +42,6 @@ static void DontDumpShadow(uptr addr, uptr size) {
}
}
-#if !SANITIZER_GO
void InitializeShadowMemory() {
// Map memory shadow.
if (!MmapFixedSuperNoReserve(ShadowBeg(), ShadowEnd() - ShadowBeg(),
More information about the llvm-commits
mailing list