summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-30 04:26:34 +0000
committerjeff <jeff@FreeBSD.org>2002-04-30 04:26:34 +0000
commit06a56984b5d6914defdf297800b55556596749a4 (patch)
treeb4c7a4980a19a06cb96cd168f9300c8333294037 /sys/kern
parent07648d50d3b80e5ed7439254ef9e41d47f19d0c5 (diff)
downloadFreeBSD-src-06a56984b5d6914defdf297800b55556596749a4.zip
FreeBSD-src-06a56984b5d6914defdf297800b55556596749a4.tar.gz
Move the implementation of M_ZERO into UMA so that it can be passed to
uma_zalloc and friends. Remove this functionality from the malloc wrapper. Document this change in uma.h and adjust variable names in uma_core.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_malloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index d1b7269..cfc4472 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -183,9 +183,6 @@ out:
if (ksp->ks_memuse > ksp->ks_maxused)
ksp->ks_maxused = ksp->ks_memuse;
- /* XXX: Do idle pre-zeroing. */
- if (va != NULL && (flags & M_ZERO))
- bzero(va, size);
return ((void *) va);
}
OpenPOWER on IntegriCloud