From: matthew Date: Thu, 22 Jul 2010 06:30:13 +0000 (+0000) Subject: We have this nice KMEMSTATS option to control when we use kmemstats, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3073e6c125ba35acebb319ae222124fb75a9f2b8;p=openbsd 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@ --- 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,")];