From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 08:57:39 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B8DB16A4CE for ; Sun, 30 Nov 2003 08:57:39 -0800 (PST) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 410FA43FBD for ; Sun, 30 Nov 2003 08:57:38 -0800 (PST) (envelope-from rihad@mail.ru) Received: from [212.47.129.6] (port=32910 helo=mail.ru) by mx1.mail.ru with esmtp id 1AQUt6-000Gem-00 for freebsd-current@freebsd.org; Sun, 30 Nov 2003 19:57:37 +0300 Message-ID: <3FCA2183.4010607@mail.ru> Date: Sun, 30 Nov 2003 20:57:39 +0400 From: rihad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: MALLOC_OPTIONS behaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 16:57:39 -0000 Under 5.2-BETA, if I run a program with "env MALLOC_OPTIONS=j" then all the malloc()'ed memory will be zeroed even though I did not ask for it (by specifying "Z"). Also, "J" (memset to 0xd0) even appears to run a somewhat *faster* than "j". Why doesn't "jz" return uninitialized memory and isn't the fastest of {jz,J,Z} (where J is the fastest)? I'm new to FreeBSD so I don't know if previously this worked as documented in malloc(3). TIA