svn commit: r314932 - head/sys/sys

Gleb Smirnoff glebius at FreeBSD.org
Thu Mar 9 00:58:23 UTC 2017


Author: glebius
Date: Thu Mar  9 00:58:21 2017
New Revision: 314932
URL: https://svnweb.freebsd.org/changeset/base/314932

Log:
  Do not turn LOCK_DEBUG for INVARIANT_SUPPORT.  This allows to add
  INVARIANT_SUPPORT into a kernel without performance penalties.
  
  Discussed with:	jhb, mjg

Modified:
  head/sys/sys/lock.h

Modified: head/sys/sys/lock.h
==============================================================================
--- head/sys/sys/lock.h	Thu Mar  9 00:56:07 2017	(r314931)
+++ head/sys/sys/lock.h	Thu Mar  9 00:58:21 2017	(r314932)
@@ -126,7 +126,7 @@ struct lock_class {
  * work with both debug and non-debug kernels.
  */
 #if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || \
-    defined(INVARIANT_SUPPORT) || defined(LOCK_PROFILING) || defined(KTR)
+    defined(LOCK_PROFILING) || defined(KTR)
 #define	LOCK_DEBUG	1
 #else
 #define	LOCK_DEBUG	0


More information about the svn-src-head mailing list