diff options
author | 2014-07-10 10:53:45 +0000 | |
---|---|---|
committer | 2014-07-10 10:53:45 +0000 | |
commit | d410144f024b417c28b4e8b46371126ab291c069 (patch) | |
tree | 9e2960f29bb99437880dba58fe0564f08c00dfc2 /sys/kern/kern_malloc.c | |
parent | sync (diff) | |
download | wireguard-openbsd-d410144f024b417c28b4e8b46371126ab291c069.tar.xz wireguard-openbsd-d410144f024b417c28b4e8b46371126ab291c069.zip |
pool_debug still needed for non-DIAGNOSTIC kernels
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 32b710db856..c519348d709 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.109 2014/07/10 07:50:27 tedu Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.110 2014/07/10 10:53:45 deraadt Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -177,8 +177,8 @@ malloc(unsigned long size, int type, int flags) KASSERT(flags & (M_WAITOK | M_NOWAIT)); if ((flags & M_NOWAIT) == 0) { -#ifdef DIAGNOSTIC extern int pool_debug; +#ifdef DIAGNOSTIC assertwaitok(); if (pool_debug == 2) yield(); |