summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2010-07-22 06:30:13 +0000
committermatthew <matthew@openbsd.org>2010-07-22 06:30:13 +0000
commit3073e6c125ba35acebb319ae222124fb75a9f2b8 (patch)
tree99979a2b746461519795550efece47a0c63919b9 /sys/kern/kern_malloc.c
parentMark two more DMA accessible malloc(9)s. (diff)
downloadwireguard-openbsd-3073e6c125ba35acebb319ae222124fb75a9f2b8.tar.xz
wireguard-openbsd-3073e6c125ba35acebb319ae222124fb75a9f2b8.zip
We have this nice KMEMSTATS option to control when we use kmemstats,
so no point in reserving space for kmemstats unless it's enabled. ok thib@, deraadt@
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index afc39fe6790..e3bf091a885 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.83 2010/07/02 01:25:05 art Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.84 2010/07/22 06:30:13 matthew Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -107,7 +107,9 @@ u_int nkmempages_min = 0;
u_int nkmempages_max = 0;
struct kmembuckets bucket[MINBUCKET + 16];
+#ifdef KMEMSTATS
struct kmemstats kmemstats[M_LAST];
+#endif
struct kmemusage *kmemusage;
char *kmembase, *kmemlimit;
char buckstring[16 * sizeof("123456,")];