summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsthen <>2014-04-30 23:28:05 +0000
committersthen <>2014-04-30 23:28:05 +0000
commit21d0a9696cd7404c448995ca5606de362f51c3bd (patch)
tree1ca9023d257d44f4274ea8e9e012a4aebc7a247a /src
parentaeece982185e5f1eb42ffba9239f1c8bfb662d81 (diff)
downloadopenbsd-21d0a9696cd7404c448995ca5606de362f51c3bd.tar.gz
openbsd-21d0a9696cd7404c448995ca5606de362f51c3bd.tar.bz2
openbsd-21d0a9696cd7404c448995ca5606de362f51c3bd.zip
first cut at documenting the change to malloc doing a partial 'junk' by
default and the new 'j' option to disable this; ok jmc@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/malloc.39
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 854d698fcc..5ac241c992 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.76 2014/04/22 15:02:16 jmc Exp $ 33.\" $OpenBSD: malloc.3,v 1.77 2014/04/30 23:28:05 sthen Exp $
34.\" 34.\"
35.Dd $Mdocdate: April 22 2014 $ 35.Dd $Mdocdate: April 30 2014 $
36.Dt MALLOC 3 36.Dt MALLOC 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -271,6 +271,11 @@ Currently junk is bytes of 0xd0 when allocating; this is pronounced
271.Dq Duh . 271.Dq Duh .
272\&:-) 272\&:-)
273Freed chunks are filled with 0xdf. 273Freed chunks are filled with 0xdf.
274.It Cm j
275.Dq Don't Junk .
276By default, small chunks are always junked, and the first part of pages
277is junked after free.
278This flag disables the default so that no junking is performed.
274.It Cm P 279.It Cm P
275.Dq Move allocations within a page. 280.Dq Move allocations within a page.
276Allocations larger than half a page but smaller than a page 281Allocations larger than half a page but smaller than a page