Add an #if SANITIZER_MAC and a comment to lsan_common's suppression for "_os_trace".

llvm-svn: 307567
This commit is contained in:
Kuba Mracek 2017-07-10 18:55:33 +00:00
parent df4a05d6fb
commit 7fa20ac847
1 changed files with 5 additions and 3 deletions

View File

@ -74,11 +74,13 @@ static const char kStdSuppressions[] =
// definition.
"leak:*pthread_exit*\n"
#endif // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
#if SANITIZER_MAC
// For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
"leak:*_os_trace*\n"
#endif
// TLS leak in some glibc versions, described in
// https://sourceware.org/bugzilla/show_bug.cgi?id=12650.
"leak:*tls_get_addr*\n"
// For Darwin and os_log/os_trace.
"leak:*_os_trace*\n";
"leak:*tls_get_addr*\n";
void InitializeSuppressions() {
CHECK_EQ(nullptr, suppression_ctx);