Browse Source

first cut at documenting the change to malloc doing a partial 'junk' by

default and the new 'j' option to disable this; ok jmc@
OPENBSD_5_6
sthen 10 years ago
parent
commit
a82252ad47
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/lib/libc/stdlib/malloc.3

+ 7
- 2
src/lib/libc/stdlib/malloc.3 View File

@ -30,9 +30,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: malloc.3,v 1.76 2014/04/22 15:02:16 jmc Exp $
.\" $OpenBSD: malloc.3,v 1.77 2014/04/30 23:28:05 sthen Exp $
.\" .\"
.Dd $Mdocdate: April 22 2014 $
.Dd $Mdocdate: April 30 2014 $
.Dt MALLOC 3 .Dt MALLOC 3
.Os .Os
.Sh NAME .Sh NAME
@ -271,6 +271,11 @@ Currently junk is bytes of 0xd0 when allocating; this is pronounced
.Dq Duh . .Dq Duh .
\&:-) \&:-)
Freed chunks are filled with 0xdf. 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 .It Cm P
.Dq Move allocations within a page. .Dq Move allocations within a page.
Allocations larger than half a page but smaller than a page Allocations larger than half a page but smaller than a page


Loading…
Cancel
Save