diff options
author | Kostya Serebryany <kcc@google.com> | 2016-09-15 02:11:07 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-09-15 02:11:07 +0000 |
commit | 5fd668fcfb53610715a7f3a7ba4e2bee41cdd63b (patch) | |
tree | 04cfd9f0eb3b2c5a619391ba648ff93c0220dbf8 | |
parent | a4fa359d0799d62d26336a51887263187c755d53 (diff) | |
download | bcm5719-llvm-5fd668fcfb53610715a7f3a7ba4e2bee41cdd63b.tar.gz bcm5719-llvm-5fd668fcfb53610715a7f3a7ba4e2bee41cdd63b.zip |
[sanitizer] one more attempt to fix things with __sanitizer_print_memory_profile
llvm-svn: 281574
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc index 843000ca5da..1a4c49e5ea9 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/compiler-rt/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); |