diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-11-20 09:01:25 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-11-20 09:01:25 +0000 |
commit | a2feefbf84ad3460491bd1dd3241731cf1f5e5b7 (patch) | |
tree | c13357e154ef34c617acbe7a8791ff58e378e7b1 /lib | |
parent | 5127c9c5ef2af28b5531f45d598d1d6fb4f17280 (diff) |
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@
Diffstat (limited to 'lib')
-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 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 <otto@drijf.net> * @@ -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) |