Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!decwrl!jumbo!mcjones From: mcjones@jumbo.DEC.COM (Paul McJones) Newsgroups: net.unix-wizards Subject: Re: brk's zero-fill behavior on VAXen Message-ID: <520@jumbo.DEC.COM> Date: Wed, 5-Nov-86 12:51:13 EST Article-I.D.: jumbo.520 Posted: Wed Nov 5 12:51:13 1986 Date-Received: Wed, 5-Nov-86 23:10:30 EST References: <7208@elsie.UUCP> Reply-To: mcjones@decwrl.UUCP (Paul McJones) Organization: DEC Systems Research Center, Palo Alto Lines: 16 --------- Arthur Olson notes that in section 2 of the UNIX Programmer's Manual, there is no guarantee that memory newly allocated by brk/sbrk is zeroed; someone else notes that System V does have such a guarantee. I ran across the following in section II of Ken Thompson's paper "UNIX Implementation" (Bell System Technical Journal, Vol. 57, No. 6, Part 2, pp. 1931-1946): "The contents of newly allocated primary memory is initialized to zero." I believe many library routines and applications have come to depend on this (perhaps by accident) and would fail if it was changed. Paul McJones DEC Systems Research Center, Palo Alto decwrl!mcjones mcjones@src.dec.com