summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_common_linux.cc
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2013-12-25 17:14:40 +0000
committerSergey Matveev <earthdok@google.com>2013-12-25 17:14:40 +0000
commite9a6f6534e9d7735f3c9f61a81b76ca1ab40d3fa (patch)
treedb6e159822516f08f877df6ebdb7301d7966448e /lib/lsan/lsan_common_linux.cc
parent4976bba1db93c290c6d4616013dc6e31708aae9e (diff)
[lsan] Minor code health stuff.
- introduce logging macros - fix incorrect vector construction git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_common_linux.cc')
-rw-r--r--lib/lsan/lsan_common_linux.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lsan/lsan_common_linux.cc b/lib/lsan/lsan_common_linux.cc
index ef8857fe8..2daee3fdf 100644
--- a/lib/lsan/lsan_common_linux.cc
+++ b/lib/lsan/lsan_common_linux.cc
@@ -83,6 +83,7 @@ static int ProcessGlobalRegionsCallback(struct dl_phdr_info *info, size_t size,
// Scans global variables for heap pointers.
void ProcessGlobalRegions(Frontier *frontier) {
+ if (!flags()->use_globals) return;
// FIXME: dl_iterate_phdr acquires a linker lock, so we run a risk of
// deadlocking by running this under StopTheWorld. However, the lock is
// reentrant, so we should be able to fix this by acquiring the lock before