Index: base/profiler/native_stack_sampler_mac.cc |
diff --git a/base/profiler/native_stack_sampler_mac.cc b/base/profiler/native_stack_sampler_mac.cc |
index 51dbbc42cb4223c014aee62b85870b4b85bb58f0..dcaaa6febcaad06b9a292d81c2c0e592fe21d591 100644 |
--- a/base/profiler/native_stack_sampler_mac.cc |
+++ b/base/profiler/native_stack_sampler_mac.cc |
@@ -166,8 +166,11 @@ const char* LibSystemKernelName() { |
dladdr(reinterpret_cast<void*>(_exit), &info); |
strncpy(path, info.dli_fname, PATH_MAX); |
name = path; |
+ |
+#if !defined(ADDRESS_SANITIZER) |
DCHECK_EQ(std::string(name), |
std::string("/usr/lib/system/libsystem_kernel.dylib")); |
+#endif |
return name; |
} |