malloc: Add flag for conditionally zeroing for INVARIANTS builds

This commit is contained in:
Matt Macy 2018-05-24 01:03:31 +00:00
parent 4560b78de2
commit b17fbe5bf6

View File

@ -59,6 +59,13 @@
#define M_MAGIC 877983977 /* time when first defined :-) */
#ifdef INVARIANTS
#define M_ZERO_INVARIANTS M_ZERO
#else
#define M_ZERO_INVARIANTS 0
#endif
/*
* Two malloc type structures are present: malloc_type, which is used by a
* type owner to declare the type, and malloc_type_internal, which holds