summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-08-27 06:40:34 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-08-27 06:40:34 +0000
commitcd15afa3e802b9c49edcb6751aeafaa703e39102 (patch)
tree5aee865fc56c2cbe3c10d87d168f4331fc2f9476 /lib
parentb1795946fd54511db65b8428f68dad8a33c57cd4 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/malloc.35
-rw-r--r--lib/libc/stdlib/malloc.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index ef77e8055e8b0..6af08ecbf451b 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 1fb09c1c51013..99d5d8bbd0a09 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;