On 2014/04/23 09:07, Ted Unangst wrote: > CVSROOT: /cvs > Module name: src > Changes by: t...@cvs.openbsd.org 2014/04/23 09:07:27 > > Modified files: > lib/libc/stdlib: malloc.c > > Log message: >
Here's a first attempt at documenting the change to junk behaviour. Index: malloc.3 =================================================================== RCS file: /cvs/src/lib/libc/stdlib/malloc.3,v retrieving revision 1.76 diff -u -p -r1.76 malloc.3 --- malloc.3 22 Apr 2014 15:02:16 -0000 1.76 +++ malloc.3 30 Apr 2014 00:59:36 -0000 @@ -271,6 +271,11 @@ Currently junk is bytes of 0xd0 when all .Dq Duh . \&:-) Freed chunks are filled with 0xdf. +.It Cm j +.Dq Don't Junk . +By default, small chunks are always junked, and the first part of pages +is junked after free. +This flag disables the default so that no junking is performed. .It Cm P .Dq Move allocations within a page. Allocations larger than half a page but smaller than a page