From owner-freebsd-doc@FreeBSD.ORG Tue Jun 20 22:30:21 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5881116A4CD for ; Tue, 20 Jun 2006 22:30:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7702943D53 for ; Tue, 20 Jun 2006 22:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5KMUKP8003547 for ; Tue, 20 Jun 2006 22:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5KMUKAH003546; Tue, 20 Jun 2006 22:30:20 GMT (envelope-from gnats) Resent-Date: Tue, 20 Jun 2006 22:30:20 GMT Resent-Message-Id: <200606202230.k5KMUKAH003546@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Lukes Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF76816A479; Tue, 20 Jun 2006 22:26:34 +0000 (UTC) (envelope-from dan@kulesh.obluda.cz) Received: from smtp1.kolej.mff.cuni.cz (smtp1.kolej.mff.cuni.cz [195.113.24.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54BE143D45; Tue, 20 Jun 2006 22:26:33 +0000 (GMT) (envelope-from dan@kulesh.obluda.cz) Received: from kulesh.obluda.cz (openvpn.ms.mff.cuni.cz [195.113.20.87]) by smtp1.kolej.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k5KMQrx0000193; Wed, 21 Jun 2006 00:26:54 +0200 (CEST) (envelope-from dan@kulesh.obluda.cz) Received: from kulesh.obluda.cz (localhost [127.0.0.1] (may be forged)) by kulesh.obluda.cz (8.13.6/8.13.6) with ESMTP id k5KMQUQn001793; Wed, 21 Jun 2006 00:26:30 +0200 (CEST) (envelope-from dan@kulesh.obluda.cz) Received: (from root@localhost) by kulesh.obluda.cz (8.13.6/8.13.6/Submit) id k5KMQTYx001792; Wed, 21 Jun 2006 00:26:29 +0200 (CEST) (envelope-from dan) Message-Id: <200606202226.k5KMQTYx001792@kulesh.obluda.cz> Date: Wed, 21 Jun 2006 00:26:29 +0200 (CEST) From: Dan Lukes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: keramida@FreeBSD.org Subject: docs/99231: [ PATCH ] malloc(3): options J and Z DOESN'T imply option R X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Lukes List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:30:21 -0000 >Number: 99231 >Category: docs >Synopsis: [ PATCH ] malloc(3): options J and Z DOESN'T imply option R >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 20 22:30:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 6.1-STABLE i386 >Organization: Obludarium >Environment: System: FreeBSD, RELENG-6 src/lib/libc/stdlib/malloc.3,v 1.63 >Description: The malloc(3) manual page claim the options 'J' and 'Z' imply 'R' option. It's not true (see grep malloc_realloc lib/libc/stdlib/malloc.c) Beware, it apply to RELENG-6 only, not CURRENT. >How-To-Repeat: N/A >Fix: --- lib/libc/stdlib/malloc.3.ORIG Fri Jul 15 16:40:52 2005 +++ lib/libc/stdlib/malloc.3 Wed Jun 21 00:15:43 2006 @@ -36,7 +36,7 @@ .\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD: src/lib/libc/stdlib/malloc.3,v 1.63 2005/01/20 09:17:04 ru Exp $ .\" -.Dd August 19, 2004 +.Dd June 21, 2006 .Dt MALLOC 3 .Os .Sh NAME @@ -192,9 +192,6 @@ or .Fn reallocf will be initialized to 0xd0. -This options also sets the -.Dq R -option. This is intended for debugging and will impact performance negatively. .It H Pass a hint to the kernel about pages unused by the allocation functions. @@ -241,9 +238,7 @@ .It Z This option implicitly sets the .Dq J -and -.Dq R -options, and then zeros out the bytes that were requested. +option, and then zeros out the bytes that were requested. This is intended for debugging and will impact performance negatively. .It < Reduce the size of the cache by a factor of two. >Release-Note: >Audit-Trail: >Unformatted: