From c63ab1272fa97fad6c014ffa5e970f210e0cd16a Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 20 Jan 1999 21:47:47 +0000 Subject: put some more stuff behind #ifdef KMEMSTATS --- sys/kern/kern_malloc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index ce8f043dcf3..d72f79fdc27 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.10 1999/01/11 05:12:23 millert Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.11 1999/01/20 21:47:46 art Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -47,10 +47,14 @@ #include struct kmembuckets bucket[MINBUCKET + 16]; +#ifdef KMEMSTATS struct kmemstats kmemstats[M_LAST]; +#endif struct kmemusage *kmemusage; char *kmembase, *kmemlimit; +#if defined(KMEMSTATS) || defined(DIAGNOSTIC) char *memname[] = INITKMEMNAMES; +#endif #ifdef DIAGNOSTIC /* -- cgit v1.2.3