Count lockmgr locks held by process if LOCKDEBUG || DIAGNOSTIC.
(previously, it was just under LOCKDEBUG).
This commit is contained in:
parent
2e50200254
commit
c0d15c5c7c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_lock.c,v 1.16 1999/03/25 00:20:35 sommerfe Exp $ */
|
||||
/* $NetBSD: kern_lock.c,v 1.17 1999/05/04 15:58:53 sommerfe Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
@ -52,7 +52,7 @@
|
||||
* Locks provide shared/exclusive sychronization.
|
||||
*/
|
||||
|
||||
#ifdef LOCKDEBUG
|
||||
#if defined(LOCKDEBUG) || defined(DIAGNOSTIC)
|
||||
#define COUNT(p, x) if (p) (p)->p_locks += (x)
|
||||
#else
|
||||
#define COUNT(p, x)
|
||||
|
Loading…
Reference in New Issue
Block a user