diff options
author | sthen <> | 2014-04-30 23:28:05 +0000 |
---|---|---|
committer | sthen <> | 2014-04-30 23:28:05 +0000 |
commit | 21d0a9696cd7404c448995ca5606de362f51c3bd (patch) | |
tree | 1ca9023d257d44f4274ea8e9e012a4aebc7a247a /src | |
parent | aeece982185e5f1eb42ffba9239f1c8bfb662d81 (diff) | |
download | openbsd-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.3 | 9 |
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 | \&:-) |
273 | Freed chunks are filled with 0xdf. | 273 | Freed chunks are filled with 0xdf. |
274 | .It Cm j | ||
275 | .Dq Don't Junk . | ||
276 | By default, small chunks are always junked, and the first part of pages | ||
277 | is junked after free. | ||
278 | This 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. |
276 | Allocations larger than half a page but smaller than a page | 281 | Allocations larger than half a page but smaller than a page |