Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2006 00:26:29 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        keramida@FreeBSD.org
Subject:   docs/99231: [ PATCH ] malloc(3): options J and Z DOESN'T imply option R
Message-ID:  <200606202226.k5KMQTYx001792@kulesh.obluda.cz>
Resent-Message-ID: <200606202230.k5KMUKAH003546@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606202226.k5KMQTYx001792>