diff options
| author | simonb <simonb@NetBSD.org> | 2000-05-20 15:13:31 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 2000-05-20 15:13:31 +0000 |
| commit | ecce47356a05102ca77d2e7f9d4e22df850db292 (patch) | |
| tree | 6587b09224e04b6d7d749d691c393ef1881d3075 /lib/libc/stdlib/malloc.c | |
| parent | 94f8eb040ad4253590e27ab2a202e52945a60113 (diff) | |
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...
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
| -rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
