Date: Fri, 10 Jun 2005 19:24:33 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Mike Hunter <mhunter@ack.berkeley.edu>, freebsd-hackers@freebsd.org Subject: Re: unitialized memory is all zeros...why not garbage instead? Message-ID: <p0621026dbecfd10b2205@[128.113.24.47]> In-Reply-To: <20050610224058.GA11336@malcolm.berkeley.edu> References: <20050610224058.GA11336@malcolm.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
At 3:40 PM -0700 6/10/05, Mike Hunter wrote: >Hey everybody, > >I have a feeling that I'm missing something really obvious, but >I'm having trouble understanding why the following program: >Never prints anything but "0"'s. Kernel generally clears out memory in the background. See also the man page for 'malloc', which will describe some options that you can set by creating an appropriate symlink at /etc/malloc.conf. In particular, the -J flag. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0621026dbecfd10b2205>