add cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which sometimes only show up as bugs in very rare cases (because even though the element is freed, the chunk is still allocated).
This commit is contained in:
@@ -278,6 +278,10 @@ mark_as_advanced(LLVM_STATIC)
|
||||
option(WITH_MEM_JEMALLOC "Enable malloc replacement (http://www.canonware.com/jemalloc)" OFF)
|
||||
mark_as_advanced(WITH_MEM_JEMALLOC)
|
||||
|
||||
# currently only used for BLI_mempool
|
||||
option(WITH_MEM_VALGRIND "Enable extended valgrind support for better reporting" OFF)
|
||||
mark_as_advanced(WITH_MEM_VALGRIND)
|
||||
|
||||
# Debug
|
||||
option(WITH_CXX_GUARDEDALLOC "Enable GuardedAlloc for C++ memory allocation tracking (only enable for development)" OFF)
|
||||
mark_as_advanced(WITH_CXX_GUARDEDALLOC)
|
||||
|
Reference in New Issue
Block a user