From ecce47356a05102ca77d2e7f9d4e22df850db292 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 20 May 2000 15:13:31 +0000 Subject: Disable malloc's hints to the kernel - now that the madvise() syscall actually does something, this can be expensive. From discussion on current-users. Note that the man page is already correct - we imported malloc.c from FreeBSD before they made the same change but malloc.3 after... --- lib/libc/stdlib/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index d74d1ea8be9..ccf0cb50007 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: malloc.c,v 1.31 2000/04/07 15:15:08 enami Exp $ */ +/* $NetBSD: malloc.c,v 1.32 2000/05/20 15:13:31 simonb Exp $ */ /* * ---------------------------------------------------------------------------- @@ -208,7 +208,7 @@ static int suicide; static int malloc_realloc; /* pass the kernel a hint on free pages ? */ -static int malloc_hint = 1; +static int malloc_hint = 0; /* xmalloc behaviour ? */ static int malloc_xmalloc; -- cgit