[lvm-devel] master - memory: disable check with valgrind pool build
Zdenek Kabelac
zkabelac at fedoraproject.org
Thu Feb 12 14:42:22 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9809038b9d3beddd90cb80311c61fd67856e0728
Commit: 9809038b9d3beddd90cb80311c61fd67856e0728
Parent: 425c04e4dc54f1c8aee261217b5b0fc00df643ae
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Thu Feb 12 15:30:43 2015 +0100
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Feb 12 15:40:53 2015 +0100
memory: disable check with valgrind pool build
When lvm2 is build with valgrind pool detection - always disable
memcheck, since pool memory allocation are unconditionaly passed
into valgrind library.
---
lib/mm/memlock.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
index 2327d4c..534aab3 100644
--- a/lib/mm/memlock.c
+++ b/lib/mm/memlock.c
@@ -262,8 +262,10 @@ static int _maps_line(const struct dm_config_node *cn, lvmlock_t lock,
/*
* Valgrind is continually eating memory while executing code
* so we need to deactivate check of locked memory size
- */
+ */
+#ifndef VALGRIND_POOL
if (RUNNING_ON_VALGRIND)
+#endif
sz -= sz; /* = 0, but avoids getting warning about dead assigment */
#endif
More information about the lvm-devel
mailing list