Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Disable malloc's hints to the kernel - now t...
details: https://anonhg.NetBSD.org/src/rev/d5733b153c5c
branches: trunk
changeset: 486379:d5733b153c5c
user: simonb <simonb%NetBSD.org@localhost>
date: Sat May 20 15:13:31 2000 +0000
description:
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:
lib/libc/stdlib/malloc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 3f0835ac18cd -r d5733b153c5c lib/libc/stdlib/malloc.c
--- a/lib/libc/stdlib/malloc.c Sat May 20 15:12:15 2000 +0000
+++ b/lib/libc/stdlib/malloc.c Sat May 20 15:13:31 2000 +0000
@@ -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 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;
Home |
Main Index |
Thread Index |
Old Index