From: Willy Tarreau Date: Wed, 28 Oct 2015 11:04:02 +0000 (+0100) Subject: DEBUG/MINOR: memory: add a build option to disable memory pools sharing X-Git-Tag: v1.7-dev1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a84dcb8440cdfc4082e0d1396fb578591c2a85a3;p=thirdparty%2Fhaproxy.git DEBUG/MINOR: memory: add a build option to disable memory pools sharing 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. --- diff --git a/include/common/memory.h b/include/common/memory.h index c76b4ca3bf..af4e6534bf 100644 --- a/include/common/memory.h +++ b/include/common/memory.h @@ -28,7 +28,11 @@ #include #include +#ifndef DEBUG_DONT_SHARE_POOLS #define MEM_F_SHARED 0x1 +#else +#define MEM_F_SHARED 0 +#endif struct pool_head { void **free_list;