diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-22 06:30:14 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-22 06:30:14 +0000 |
commit | 13ad5010c3b02973a1e3c53a272da8b0cde479cd (patch) | |
tree | f9b7ca26c870ca04371f5340ef867c289c3001ee /sys/kern | |
parent | 2da1725120c542b7c9589b05ceafd2b5e6c8b159 (diff) |
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')
-rw-r--r-- | sys/kern/kern_malloc.c | 4 |
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,")]; |