Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 10:59:53 -0700 (PDT)
From:      Matthew Jacob <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
Message-ID:  <Pine.GSO.4.21.0010201059270.21930-100000@bird.feral.com>
In-Reply-To: <200010201754.KAA91905@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0010201059270.21930-100000>