From 4483ecc8aa0fe10a3c5ed81f2f06c03dfbc1241c Mon Sep 17 00:00:00 2001 From: otto <> Date: Thu, 20 Nov 2008 09:05:15 +0000 Subject: move allocations between half a page and a page as close to the end of the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@ --- src/lib/libc/stdlib/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/stdlib/malloc.c') diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 4e33d33b1b..0f1f088b44 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.109 2008/11/20 09:01:24 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.110 2008/11/20 09:05:15 otto Exp $ */ /* * Copyright (c) 2008 Otto Moerbeek * @@ -154,7 +154,7 @@ static int malloc_active; /* status of malloc */ static int malloc_freeprot; /* mprotect free pages PROT_NONE? */ static int malloc_hint; /* call madvice on free pages? */ static int malloc_junk; /* junk fill? */ -static int malloc_move; /* move allocations to end of page? */ +static int malloc_move = 1; /* move allocations to end of page? */ static int malloc_realloc; /* always realloc? */ static int malloc_xmalloc; /* xmalloc behaviour? */ static int malloc_zero; /* zero fill? */ -- cgit v1.2.3-55-g6feb