From owner-freebsd-current Sun Jun 16 15:48:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 3020C37B405; Sun, 16 Jun 2002 15:48:04 -0700 (PDT) Received: from strings.polstra.com (strings.polstra.com [206.213.73.20]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g5GMkff66045; Sun, 16 Jun 2002 15:46:41 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200206162211.g5GMBgri042006@apollo.backplane.com> Date: Sun, 16 Jun 2002 15:46:41 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: Matthew Dillon Subject: Re: rtld-elf patches for non-i386 architectures (review / test r Cc: obrien@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG, freebsd-current@FreeBSD.ORG, Alfred Perlstein Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon wrote: >: >:Why memset(3) the anon memory to zero, isn't that what it's supposed >:to be initialized to anyway? >: >:-- >:-Alfred Perlstein [alfred@freebsd.org] > > I was just being ultra-conservative. You are absolutely correct > in regards to the anonymous area already being zero. I would like > to commit with the memset()'s in just for uniformity and then make > another pass to remove them. (there's no real issue of cpu waste > since we are going to take faults on the anonymous pages anyway). Sounds OK to me, although I worry a little bit about relying on the zeroing of the memory by mmap. I don't see it documented in the man page, so there's a (slight) risk that somebody could remove that feature in the future. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message