From 3073e6c125ba35acebb319ae222124fb75a9f2b8 Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 22 Jul 2010 06:30:13 +0000 Subject: [PATCH] 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@ --- sys/kern/kern_malloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,")]; -- 2.20.1