Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 01:03:31 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334124 - head/sys/sys
Message-ID:  <201805240103.w4O13V8Y098473@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805240103.w4O13V8Y098473>