svn commit: r334124 - head/sys/sys

Matt Macy mmacy at FreeBSD.org
Thu May 24 01:03:32 UTC 2018


Author: mmacy
Date: Thu May 24 01:03:31 2018
New Revision: 334124
URL: https://svnweb.freebsd.org/changeset/base/334124

Log:
  malloc: Add flag for conditionally zeroing for INVARIANTS builds

Modified:
  head/sys/sys/malloc.h

Modified: head/sys/sys/malloc.h
==============================================================================
--- head/sys/sys/malloc.h	Thu May 24 00:06:55 2018	(r334123)
+++ head/sys/sys/malloc.h	Thu May 24 01:03:31 2018	(r334124)
@@ -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


More information about the svn-src-head mailing list