Count lockmgr locks held by process if LOCKDEBUG || DIAGNOSTIC.

(previously, it was just under LOCKDEBUG).
This commit is contained in:
sommerfe 1999-05-04 15:58:53 +00:00
parent 2e50200254
commit c0d15c5c7c

View File

@ -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 * Copyright (c) 1995
@ -52,7 +52,7 @@
* Locks provide shared/exclusive sychronization. * Locks provide shared/exclusive sychronization.
*/ */
#ifdef LOCKDEBUG #if defined(LOCKDEBUG) || defined(DIAGNOSTIC)
#define COUNT(p, x) if (p) (p)->p_locks += (x) #define COUNT(p, x) if (p) (p)->p_locks += (x)
#else #else
#define COUNT(p, x) #define COUNT(p, x)