Date: Fri, 31 Jul 2015 10:54:15 -0700 From: John Baldwin <jhb@freebsd.org> To: "Andrey V. Elsukov" <ae@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285888 - head/sys/kern Message-ID: <1825472.MtINFO9Kkx@ralph.baldwin.cx> In-Reply-To: <201507261053.t6QArX3q081202@repo.freebsd.org> References: <201507261053.t6QArX3q081202@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, July 26, 2015 10:53:33 AM Andrey V. Elsukov wrote: > Author: ae > Date: Sun Jul 26 10:53:32 2015 > New Revision: 285888 > URL: https://svnweb.freebsd.org/changeset/base/285888 > > Log: > Build debug version of rmlock's methods only when LOCK_DEBUG > 0. > > Currently LOCK_DEBUG is always defined in sys/lock.h (0 or 1). > This means that debugging code always built. In addition the kernel > modules have always defined LOCK_DEBUG as 1. So, debugging rmlock code > is always used by kernel modules. Debugging versions of locking primitives are always used by all locking primitives (mutexes, rw, sx, etc.) so that if the kernel has INVARIANTS enabled then those checks are always performed regardless of how the module is compiled. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1825472.MtINFO9Kkx>