X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fdlmalloc.h;h=b8e3236740047ba9106f432436aae20c8a27bd17;hb=d055475773b5741276edb818fb27478f532487b4;hp=fbc49e3567191b4efee02e8ec0a63c8b09694464;hpb=6a5adc369591fcac2447e9809deaa22f56b53911;p=vpp.git diff --git a/src/vppinfra/dlmalloc.h b/src/vppinfra/dlmalloc.h index fbc49e35671..b8e32367400 100644 --- a/src/vppinfra/dlmalloc.h +++ b/src/vppinfra/dlmalloc.h @@ -524,6 +524,18 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP #include #include +/* --- begin vpp customizations --- */ + +#if CLIB_DEBUG > 0 +#define FOOTERS 1 /* extra debugging */ +#define DLM_MAGIC_CONSTANT 0xdeaddabe +#endif +#define USE_LOCKS 1 +#define DLM_ABORT {extern void os_panic(void); os_panic(); abort();} +#define ONLY_MSPACES 1 + +/* --- end vpp customizations --- */ + /* Version identifier to allow people to support multiple versions */ #ifndef DLMALLOC_VERSION #define DLMALLOC_VERSION 20806 @@ -587,8 +599,6 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP /* The maximum possible size_t value has all bits set */ #define MAX_SIZE_T (~(size_t)0) -#define USE_LOCKS 1 - #ifndef USE_LOCKS /* ensure true if spin or recursive locks set */ #define USE_LOCKS ((defined(USE_SPIN_LOCKS) && USE_SPIN_LOCKS != 0) || \ (defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0))