diff options
author | phk <phk@FreeBSD.org> | 1997-08-27 06:40:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-08-27 06:40:34 +0000 |
commit | f276c66ddf1b16b1286bda66924fb3eedadcb8c1 (patch) | |
tree | 694ab069eb58890f702bdc3a29e6ca951e21a890 /lib/libc/stdlib | |
parent | f9bc029397a709b425651e92ed8f84b385e4e2c9 (diff) | |
download | FreeBSD-src-f276c66ddf1b16b1286bda66924fb3eedadcb8c1.zip FreeBSD-src-f276c66ddf1b16b1286bda66924fb3eedadcb8c1.tar.gz |
Malloc option H is now default.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 5 | ||||
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index ef77e80..6af08ec 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -34,7 +34,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 -.\" $Id: malloc.3,v 1.12 1997/06/22 17:54:27 phk Exp $ +.\" $Id: malloc.3,v 1.13 1997/07/01 18:39:36 phk Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -155,7 +155,8 @@ 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. -This may help performance if the system is paging excessively. +This will help performance if the system is paging excessively. This +option is on by default. .It R Cause the .Fn realloc diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 1fb09c1..99d5d8b 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: malloc.c,v 1.28 1997/07/02 19:33:23 phk Exp $ + * $Id: malloc.c,v 1.29 1997/07/26 03:43:14 jdp Exp $ * */ @@ -206,7 +206,7 @@ static int suicide; static int malloc_realloc; /* pass the kernel a hint on free pages ? */ -static int malloc_hint; +static int malloc_hint = 1; /* xmalloc behaviour ? */ static int malloc_xmalloc; |