summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_libcdep.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-14 22:35:56 +0000
committerKostya Serebryany <kcc@google.com>2016-09-14 22:35:56 +0000
commit94ccae94dcfc36ac94cd78dc4808df54f5dbbfce (patch)
tree117387a64c65770bd669313a9f0be652a030afc9 /lib/sanitizer_common/sanitizer_common_libcdep.cc
parent8d9c779c95d0fb551edec79d67a17107b984f7b6 (diff)
[tsan] fix tsan build by adding a dummy __sanitizer_print_memory_profile
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_libcdep.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_common_libcdep.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_libcdep.cc b/lib/sanitizer_common/sanitizer_common_libcdep.cc
index 1a4c49e5e..843000ca5 100644
--- a/lib/sanitizer_common/sanitizer_common_libcdep.cc
+++ b/lib/sanitizer_common/sanitizer_common_libcdep.cc
@@ -127,7 +127,7 @@ void BackgroundThread(void *arg) {
}
}
if (allocator_release_to_os && ReleseCallback) ReleseCallback();
- if (heap_profile &&
+ if (heap_profile && /* weak */ &__sanitizer_print_memory_profile &&
current_rss_mb > rss_during_last_reported_profile * 1.1) {
Printf("\n\nHEAP PROFILE at RSS %zdMb\n", current_rss_mb);
__sanitizer_print_memory_profile(90);