summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-10-03 19:31:50 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-10-03 19:31:50 +0000
commit341469294fedf2ac84a7209902459fbe24c452f9 (patch)
treecff61251544e7042077123a977c3d068dd1326a3 /lib/libc/stdlib/malloc.c
parent09a74e351b204cf80e51d2217e7112612c2293e6 (diff)
reduce rbyte cache to 512 bytes, no measurable slowdown (even in the
threaded case) but much smaller working set; prompted by and ok deraadt@
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 f1768cfe650..4d196edbe09 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.101 2008/10/03 19:01:12 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.102 2008/10/03 19:31:49 otto Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
@@ -161,7 +161,7 @@ static int malloc_stats; /* dump statistics at end */
#endif
static size_t rbytesused; /* random bytes used */
-static u_char rbytes[4096]; /* random bytes */
+static u_char rbytes[512]; /* random bytes */
static u_char getrbyte(void);
extern char *__progname;