summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index ced8511..4bb2a92 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -146,7 +146,11 @@ __FBSDID("$FreeBSD$");
# define MALLOC_STATS
#endif
-#ifndef MALLOC_DEBUG
+#ifdef MALLOC_DEBUG
+# ifdef NDEBUG
+# undef NDEBUG
+# endif
+#else
# ifndef NDEBUG
# define NDEBUG
# endif
@@ -549,9 +553,9 @@ struct arena_s {
static unsigned ncpus;
/* VM page size. */
-static unsigned pagesize;
-static unsigned pagesize_mask;
-static unsigned pagesize_2pow;
+static size_t pagesize;
+static size_t pagesize_mask;
+static size_t pagesize_2pow;
/* Various bin-related settings. */
static size_t bin_maxclass; /* Max size class for bins. */
OpenPOWER on IntegriCloud