]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG/MINOR: memory: add a build option to disable memory pools sharing
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Oct 2015 11:04:02 +0000 (12:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Oct 2015 14:27:55 +0000 (15:27 +0100)
Sometimes analysing a core file isn't easy due to shared memory pools.
Let's add a build option to disable this. It's not enabled by default,
it could be backported to older versions.

include/common/memory.h

index c76b4ca3bf49721e9742d8754b143a59c1b88f9e..af4e6534bff7c6c42e2a8d04e5d36a0ee993e5bd 100644 (file)
 #include <common/config.h>
 #include <common/mini-clist.h>
 
+#ifndef DEBUG_DONT_SHARE_POOLS
 #define MEM_F_SHARED   0x1
+#else
+#define MEM_F_SHARED   0
+#endif
 
 struct pool_head {
        void **free_list;