[compiler-rt] r281574 - [sanitizer] one more attempt to fix things with __sanitizer_print_memory_profile
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 19:11:07 PDT 2016
Author: kcc
Date: Wed Sep 14 21:11:07 2016
New Revision: 281574
URL: http://llvm.org/viewvc/llvm-project?rev=281574&view=rev
Log:
[sanitizer] one more attempt to fix things with __sanitizer_print_memory_profile
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc?rev=281574&r1=281573&r2=281574&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc Wed Sep 14 21:11:07 2016
@@ -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);
More information about the llvm-commits
mailing list