diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-05-21 22:37:13 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-05-22 23:48:01 -0700 |
commit | 9ce93bc3be1dd5a5caecbb45966bc6b7b8e2c32b (patch) | |
tree | 0660c543b60ae5bf7034bf5bb4f2f1e267581751 /libglusterfs/src/graph.l | |
parent | 0127da7bb24794e737adc5a3195d3c54a175257f (diff) |
libglusterfs: Provide a way to disable mempool effects
Problems:
- Mempool comes in the way of debugging mem-leaks/corruptions
because tools like valgrind can't detect mem-pools.
- Accessing freed pointers may crash only when the mem-pool
is completely exhausted.
Solution:
In DEBUG builds set mempool count to 0 irrespective of the
pool size requested. This should help in debugging
memory-leaks/corruptions.
Change-Id: I7c6a2d696e330f12acff57ebdc589cc150e9ab79
BUG: 1100144
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7835
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.l')
0 files changed, 0 insertions, 0 deletions