From owner-cvs-all Fri Oct 20 10:54:58 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 71A7537B4C5; Fri, 20 Oct 2000 10:54:55 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA91905; Fri, 20 Oct 2000 10:54:55 -0700 (PDT) (envelope-from phk@FreeBSD.org) Message-Id: <200010201754.KAA91905@freefall.freebsd.org> From: Poul-Henning Kamp Date: Fri, 20 Oct 2000 10:54:55 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c src/share/man/man9 malloc.9 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG phk 2000/10/20 10:54:55 PDT Modified files: sys/sys malloc.h sys/kern kern_malloc.c share/man/man9 malloc.9 Log: Introduce the M_ZERO flag to malloc(9) Instead of: foo = malloc(sizeof(foo), M_WAIT); bzero(foo, sizeof(foo)); You can now (and please do) use: foo = malloc(sizeof(foo), M_WAIT | M_ZERO); In the future this will enable us to do idle-time pre-zeroing of malloc-space. Revision Changes Path 1.51 +2 -1 src/sys/sys/malloc.h 1.75 +4 -1 src/sys/kern/kern_malloc.c 1.14 +3 -1 src/share/man/man9/malloc.9 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message