Commit 6fc72bec authored by rjkroege's avatar rjkroege Committed by Commit bot

Work-around ASAN problem in profiler

ASAN wraps the kernel dylib on mac. Special case this to avoid tripping
a DCHECK.

BUG=718628
TBR=avi@chromium.org

Review-Url: https://codereview.chromium.org/2859303002
Cr-Commit-Position: refs/heads/master@{#469515}
parent 53f36cb4
...@@ -166,8 +166,11 @@ const char* LibSystemKernelName() { ...@@ -166,8 +166,11 @@ const char* LibSystemKernelName() {
dladdr(reinterpret_cast<void*>(_exit), &info); dladdr(reinterpret_cast<void*>(_exit), &info);
strncpy(path, info.dli_fname, PATH_MAX); strncpy(path, info.dli_fname, PATH_MAX);
name = path; name = path;
#if !defined(ADDRESS_SANITIZER)
DCHECK_EQ(std::string(name), DCHECK_EQ(std::string(name),
std::string("/usr/lib/system/libsystem_kernel.dylib")); std::string("/usr/lib/system/libsystem_kernel.dylib"));
#endif
return name; return name;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment