Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2017 00:58:21 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314932 - head/sys/sys
Message-ID:  <201703090058.v290wLVN050747@repo.freebsd.org>

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



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