diff options
author | 2014-07-10 07:50:27 +0000 | |
---|---|---|
committer | 2014-07-10 07:50:27 +0000 | |
commit | 54d86b476bf804fb354033455bdbc3be7ba37099 (patch) | |
tree | 38e6549868228e14261cf86f1507e7f4cf7ce902 /sys/kern/kern_malloc.c | |
parent | BN_free, BN_clear_free, BN_CTX_free, BN_BLINDING_free and BN_MONT_CTX_free (diff) | |
download | wireguard-openbsd-54d86b476bf804fb354033455bdbc3be7ba37099.tar.xz wireguard-openbsd-54d86b476bf804fb354033455bdbc3be7ba37099.zip |
hide the biglock thrashing under pool_debug so it can be turned off
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 0e5397a0980..32b710db856 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.108 2014/06/21 19:24:57 daniel Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.109 2014/07/10 07:50:27 tedu Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -183,7 +183,7 @@ malloc(unsigned long size, int type, int flags) if (pool_debug == 2) yield(); #endif - if (!cold) { + if (!cold && pool_debug) { KERNEL_UNLOCK(); KERNEL_LOCK(); } |