summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/dlmalloc.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-07-27 11:30:46 -0700
committerFlorin Coras <fcoras@cisco.com>2018-07-27 11:39:14 -0700
commitd055475773b5741276edb818fb27478f532487b4 (patch)
tree2bd440bdc51e08a4b9c2270138805b2beeb1335b /src/vppinfra/dlmalloc.h
parentcd2190e124d723fcde87c1ee636a09410a384e1a (diff)
dlmalloc: use static magic constant for debug images
Avoids crashes on restarts if svm root region backing file was not cleaned up. Change-Id: I608cf5711aa8c3f9620900473bdf76bde8b918de Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra/dlmalloc.h')
-rw-r--r--src/vppinfra/dlmalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/dlmalloc.h b/src/vppinfra/dlmalloc.h
index b3278f9dc50..b8e32367400 100644
--- a/src/vppinfra/dlmalloc.h
+++ b/src/vppinfra/dlmalloc.h
@@ -528,6 +528,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
#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();}