diff options
author | otto <> | 2008-11-20 09:01:24 +0000 |
---|---|---|
committer | otto <> | 2008-11-20 09:01:24 +0000 |
commit | 422908b7127f80f01d79727185c22b9a1471671d (patch) | |
tree | c5781bbc76fac2a7c23d38c0ca68890eed65ec75 /src | |
parent | 0d4b7249532c0ce864c585bac2c73de7d911c1be (diff) | |
download | openbsd-422908b7127f80f01d79727185c22b9a1471671d.tar.gz openbsd-422908b7127f80f01d79727185c22b9a1471671d.tar.bz2 openbsd-422908b7127f80f01d79727185c22b9a1471671d.zip |
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 'src')
-rw-r--r-- | src/lib/libc/stdlib/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index b6e4ada312..4e33d33b1b 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc.c,v 1.108 2008/11/13 07:38:45 otto Exp $ */ | 1 | /* $OpenBSD: malloc.c,v 1.109 2008/11/20 09:01:24 otto Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net> | 3 | * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net> |
4 | * | 4 | * |
@@ -70,7 +70,7 @@ | |||
70 | * This is the extra headroom we allow. Set to zero to be the most | 70 | * This is the extra headroom we allow. Set to zero to be the most |
71 | * strict. | 71 | * strict. |
72 | */ | 72 | */ |
73 | #define MALLOC_LEEWAY 16 | 73 | #define MALLOC_LEEWAY 0 |
74 | 74 | ||
75 | #define PAGEROUND(x) (((x) + (MALLOC_PAGEMASK)) & ~MALLOC_PAGEMASK) | 75 | #define PAGEROUND(x) (((x) + (MALLOC_PAGEMASK)) & ~MALLOC_PAGEMASK) |
76 | 76 | ||