From owner-cvs-all Fri Oct 20 10:59:57 2000 Delivered-To: cvs-all@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id EF89137B4C5; Fri, 20 Oct 2000 10:59:53 -0700 (PDT) Received: from bird (bird.feral.com [192.67.166.155]) by feral.com (8.9.3/8.9.3) with ESMTP id KAA28496; Fri, 20 Oct 2000 10:59:55 -0700 Date: Fri, 20 Oct 2000 10:59:53 -0700 (PDT) From: Matthew Jacob <mjacob@feral.com> Reply-To: mjacob@feral.com To: Poul-Henning Kamp <phk@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c src/share/man/man9 malloc.9 In-Reply-To: <200010201754.KAA91905@freefall.freebsd.org> Message-ID: <Pine.GSO.4.21.0010201059270.21930-100000@bird.feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Very very cool...! On Fri, 20 Oct 2000, Poul-Henning Kamp wrote: > 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