summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/malloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index 90c49aa538..ff1f59c479 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.247 2018/03/06 14:28:01 deraadt Exp $ */ 1/* $OpenBSD: malloc.c,v 1.248 2018/03/30 07:23:15 otto Exp $ */
2/* 2/*
3 * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> 4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -57,7 +57,11 @@
57#define MALLOC_MAXCHUNK (1 << MALLOC_MAXSHIFT) 57#define MALLOC_MAXCHUNK (1 << MALLOC_MAXSHIFT)
58#define MALLOC_MAXCACHE 256 58#define MALLOC_MAXCACHE 256
59#define MALLOC_DELAYED_CHUNK_MASK 15 59#define MALLOC_DELAYED_CHUNK_MASK 15
60#ifdef MALLOC_STATS
61#define MALLOC_INITIAL_REGIONS 512
62#else
60#define MALLOC_INITIAL_REGIONS (MALLOC_PAGESIZE / sizeof(struct region_info)) 63#define MALLOC_INITIAL_REGIONS (MALLOC_PAGESIZE / sizeof(struct region_info))
64#endif
61#define MALLOC_DEFAULT_CACHE 64 65#define MALLOC_DEFAULT_CACHE 64
62#define MALLOC_CHUNK_LISTS 4 66#define MALLOC_CHUNK_LISTS 4
63#define CHUNK_CHECK_LENGTH 32 67#define CHUNK_CHECK_LENGTH 32