Add debugging tools for ContextMemoryManager (#1407)
authorAndres Noetzli <andres.noetzli@gmail.com>
Fri, 1 Dec 2017 03:00:23 +0000 (19:00 -0800)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2017 03:00:23 +0000 (19:00 -0800)
commit6d740ab8167fe0f48ea78306d65e2cb8a4de2d09
tree55af24ca0024a7a5327b936213c055eca96107cf
parent4c1f1cad720a94226f7834874cf59478de35b74a
Add debugging tools for ContextMemoryManager (#1407)

This commit adds two configuration options that help debugging memory
issues with allocations in the ContextMemoryManager:

--enable/disable-valgrind: This flag enables/disables Valgrind
instrumentation of the ContextMemoryManager. Enabled by default for
debug builds if the Valgrind headers are available.

--enable/disable-context-memory-manager: This flag enables/disables the
use of the ContextMemoryManager. If the flag is disableda dummy
ContextMemoryManager is used that does single allocations instead of
chunks. The flag is enabled by default.
configure.ac
src/context/context_mm.cpp
src/context/context_mm.h
test/unit/context/context_mm_black.h