summaryrefslogtreecommitdiff
path: root/src/mongo/util/quick_exit.cpp
diff options
context:
space:
mode:
authorKamran Khan <kamran.khan@mongodb.com>2015-06-09 11:14:10 -0400
committerKamran Khan <kamran.khan@mongodb.com>2015-06-09 12:09:17 -0400
commite5f22add58bb3daed24e5a5787fddafec4de17ea (patch)
tree193a16d2b34462f102a2f32f457c556bff67df5e /src/mongo/util/quick_exit.cpp
parent4a37e349883983236db844bbb10ce786b3f1df0b (diff)
downloadmongo-e5f22add58bb3daed24e5a5787fddafec4de17ea.tar.gz
Revert "SERVER-18597 Add support for writing ASan code coverage data on exit"
This reverts commit 6fc1d7c617db0f9da9100f4ed3c929f0d76567b1. JS-test tasks for the ASan build are failing with this error: CHECK failed: sanitizer_common.h:323 "((initial_capacity)) > ((0))" (0x0, 0x0)
Diffstat (limited to 'src/mongo/util/quick_exit.cpp')
-rw-r--r--src/mongo/util/quick_exit.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/util/quick_exit.cpp b/src/mongo/util/quick_exit.cpp
index 3b0c804fe6a..f103dc58413 100644
--- a/src/mongo/util/quick_exit.cpp
+++ b/src/mongo/util/quick_exit.cpp
@@ -41,19 +41,7 @@
#define __has_feature(x) 0
#endif
-#if !defined(__has_include)
-#define __has_include(x) 0
-#endif
-
#if __has_feature(address_sanitizer)
-
-#if __has_include(<sanitizer/coverage_interface.h>)
-// In Clang 3.7+, the coverage interface is split out into its own header file
-#include <sanitizer/coverage_interface.h>
-#elif __has_include(<sanitizer/common_interface_defs.h>)
-#include <sanitizer/common_interface_defs.h>
-#endif
-
#include <sanitizer/lsan_interface.h>
#endif
@@ -69,12 +57,6 @@ namespace mongo {
#endif
#if __has_feature(address_sanitizer)
- // Always dump coverage data first because older versions of leak sanitizer do not write
- // coverage data before exiting with leak errors. The underlying issue is fixed in clang
- // 3.6, which also prevents coverage data from being written more than once via an atomic
- // guard.
- __sanitizer_cov_dump();
-
__lsan_do_leak_check();
#endif