diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2015-04-02 14:48:08 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2015-04-02 14:48:08 +0000 |
commit | 9b0ca95e42c4e9c4ee4d1d0f0c07d44c85350157 (patch) | |
tree | ae29d52a25c4eccae7a6553ba81f249b48d48d2c /lib/sanitizer_common/sanitizer_common_libcdep.cc | |
parent | 0ce88c7621cdfebfe4faf6d1eb828200c2ce8406 (diff) |
[ASan/Win] Minor improvements towards enabling coverage
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@233918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_libcdep.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common_libcdep.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_libcdep.cc b/lib/sanitizer_common/sanitizer_common_libcdep.cc index 9622e60c2..437073d92 100644 --- a/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -113,12 +113,13 @@ void BackgroundThread(void *arg) { } void MaybeStartBackgroudThread() { - if (!SANITIZER_LINUX) return; // Need to implement/test on other platforms. +#if SANITIZER_LINUX // Need to implement/test on other platforms. // Start the background thread if one of the rss limits is given. if (!common_flags()->hard_rss_limit_mb && !common_flags()->soft_rss_limit_mb) return; if (!&real_pthread_create) return; // Can't spawn the thread anyway. internal_start_thread(BackgroundThread, nullptr); +#endif } } // namespace __sanitizer |