From 8d4d9a3c33ca3ac0a0f7ae6dc982dc3aa87243dd Mon Sep 17 00:00:00 2001 From: otto Date: Thu, 20 Nov 2008 09:01:24 +0000 Subject: Reduce the leeway malloc allows when moving allocations to the end of a page to 0. P default will be changed in a separate commit. ok millert@ art@ krw@ --- lib/libc/stdlib/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib/malloc.c') diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index b6e4ada3124..4e33d33b1b7 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.108 2008/11/13 07:38:45 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.109 2008/11/20 09:01:24 otto Exp $ */ /* * Copyright (c) 2008 Otto Moerbeek * @@ -70,7 +70,7 @@ * This is the extra headroom we allow. Set to zero to be the most * strict. */ -#define MALLOC_LEEWAY 16 +#define MALLOC_LEEWAY 0 #define PAGEROUND(x) (((x) + (MALLOC_PAGEMASK)) & ~MALLOC_PAGEMASK) -- cgit v1.2.3-59-g8ed1b