unitialized memory is all zeros...why not garbage instead?
Garance A Drosihn
drosih at rpi.edu
Fri Jun 10 23:24:38 GMT 2005
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 at gilead.netel.rpi.edu
Senior Systems Programmer or gad at freebsd.org
Rensselaer Polytechnic Institute or drosih at rpi.edu
More information about the freebsd-hackers
mailing list