HomeFreeBSD

Build debug version of rmlock's methods only when LOCK_DEBUG > 0.

Description

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.

MFC after: 1 week

Details

Provenance
aeAuthored on
Parents
rS285887: Improve locking on Mac OS X. This does not change the functionality
Branches
Unknown
Tags
Unknown