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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"