Don't run tcmalloc dependent unit tests with sanitizers
Sanitizers replace the default memory allocator with a custom one. Unit tests that depend on tcmalloc functionality should not execute in such cases. These cases are identified by compile macro MEMORY_TOOL_REPLACES_ALLOCATOR being defined. While we are at it, don't instantiate the heap profiler when tcmalloc is not used, as the collector depends on tcmalloc too and it may result in flakiness. We can enable it for sanitizers once we remove dependency on tcmalloc. BUG=chromium:724399,b:70905156 Change-Id: I4ded0301e6ef190b6b45c7f01405005765f3c5e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636611Reviewed-by:Gabriel Marin <gmx@chromium.org> Reviewed-by:
Alexei Filippov <alph@chromium.org> Commit-Queue: Gabriel Marin <gmx@chromium.org> Cr-Commit-Position: refs/heads/master@{#664568}
Showing
Please register or sign in to comment