1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

Assert that _PRELE() is done for the held process.

Tested by:	pho
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-11-09 17:13:41 +00:00
parent da5a448eb2
commit ebd2498cdf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227392

View File

@ -755,6 +755,7 @@ MALLOC_DECLARE(M_SUBPROC);
} while (0)
#define _PRELE(p) do { \
PROC_LOCK_ASSERT((p), MA_OWNED); \
PROC_ASSERT_HELD(p); \
(--(p)->p_lock); \
if (((p)->p_flag & P_WEXIT) && (p)->p_lock == 0) \
wakeup(&(p)->p_lock); \