summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_libcdep.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-15 02:11:07 +0000
committerKostya Serebryany <kcc@google.com>2016-09-15 02:11:07 +0000
commitd3633e84adfce9fd21b2b48b838abd072c35fa91 (patch)
tree17fc92471fb9930d7fb7371934fd580ce973cb42 /lib/sanitizer_common/sanitizer_common_libcdep.cc
parenta324b0bc6d3b75da37cebc8f8a6f9f658af74369 (diff)
[sanitizer] one more attempt to fix things with __sanitizer_print_memory_profile
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281574 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 843000ca5..1a4c49e5e 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 && /* weak */ &__sanitizer_print_memory_profile &&
+ if (heap_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);