summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2008-11-20 09:01:24 +0000
committerotto <otto@openbsd.org>2008-11-20 09:01:24 +0000
commit8d4d9a3c33ca3ac0a0f7ae6dc982dc3aa87243dd (patch)
tree0c83a86edcff9761ece996ed92e3c6644989e0eb /lib/libc/stdlib/malloc.c
parentwhile setting the block size, try smaller blocks half of the retries and (diff)
downloadwireguard-openbsd-8d4d9a3c33ca3ac0a0f7ae6dc982dc3aa87243dd.tar.xz
wireguard-openbsd-8d4d9a3c33ca3ac0a0f7ae6dc982dc3aa87243dd.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 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c4
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)