summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorotto <>2008-10-03 19:31:49 +0000
committerotto <>2008-10-03 19:31:49 +0000
commitd5f231a99dfec5d7d665452ec0798f061b3462c7 (patch)
tree72415ee1b894593d103a16203af8062b18ed31a3 /src
parent30341d9d6b901701cfd466001d77c9467cbfe59c (diff)
downloadopenbsd-d5f231a99dfec5d7d665452ec0798f061b3462c7.tar.gz
openbsd-d5f231a99dfec5d7d665452ec0798f061b3462c7.tar.bz2
openbsd-d5f231a99dfec5d7d665452ec0798f061b3462c7.zip
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 'src')
-rw-r--r--src/lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index f1768cfe65..4d196edbe0 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.101 2008/10/03 19:01:12 otto Exp $ */ 1/* $OpenBSD: malloc.c,v 1.102 2008/10/03 19:31:49 otto Exp $ */
2/* 2/*
3 * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
4 * 4 *
@@ -161,7 +161,7 @@ static int malloc_stats; /* dump statistics at end */
161#endif 161#endif
162 162
163static size_t rbytesused; /* random bytes used */ 163static size_t rbytesused; /* random bytes used */
164static u_char rbytes[4096]; /* random bytes */ 164static u_char rbytes[512]; /* random bytes */
165static u_char getrbyte(void); 165static u_char getrbyte(void);
166 166
167extern char *__progname; 167extern char *__progname;