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.
This commit is contained in:
Willy Tarreau 2015-10-28 12:04:02 +01:00
parent edb93a7c28
commit a84dcb8440

View File

@ -28,7 +28,11 @@
#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;