[tsan] fix tsan build by adding a dummy __sanitizer_print_memory_profile
llvm-svn: 281553
This commit is contained in:
parent
a98496e6b0
commit
446b5d8811
|
@ -127,7 +127,7 @@ void BackgroundThread(void *arg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (allocator_release_to_os && ReleseCallback) ReleseCallback();
|
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) {
|
current_rss_mb > rss_during_last_reported_profile * 1.1) {
|
||||||
Printf("\n\nHEAP PROFILE at RSS %zdMb\n", current_rss_mb);
|
Printf("\n\nHEAP PROFILE at RSS %zdMb\n", current_rss_mb);
|
||||||
__sanitizer_print_memory_profile(90);
|
__sanitizer_print_memory_profile(90);
|
||||||
|
|
|
@ -42,6 +42,8 @@ extern "C" void __tsan_resume() {
|
||||||
__tsan_resumed = 1;
|
__tsan_resumed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" void __sanitizer_print_memory_profile(int percent) {} // Stub.
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
#if !defined(SANITIZER_GO) && !SANITIZER_MAC
|
#if !defined(SANITIZER_GO) && !SANITIZER_MAC
|
||||||
|
|
Loading…
Reference in New Issue