Date: Fri, 20 Oct 2000 10:54:55 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> 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 Message-ID: <200010201754.KAA91905@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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?200010201754.KAA91905>