svn commit: r285888 - head/sys/kern
John Baldwin
jhb at freebsd.org
Sat Aug 1 05:32:31 UTC 2015
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
More information about the svn-src-all
mailing list