From a84dcb8440cdfc4082e0d1396fb578591c2a85a3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 28 Oct 2015 12:04:02 +0100 Subject: [PATCH] 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. --- include/common/memory.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3