diff options
author | otto <> | 2008-10-03 19:31:49 +0000 |
---|---|---|
committer | otto <> | 2008-10-03 19:31:49 +0000 |
commit | d5f231a99dfec5d7d665452ec0798f061b3462c7 (patch) | |
tree | 72415ee1b894593d103a16203af8062b18ed31a3 /src | |
parent | 30341d9d6b901701cfd466001d77c9467cbfe59c (diff) | |
download | openbsd-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.c | 4 |
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 | ||
163 | static size_t rbytesused; /* random bytes used */ | 163 | static size_t rbytesused; /* random bytes used */ |
164 | static u_char rbytes[4096]; /* random bytes */ | 164 | static u_char rbytes[512]; /* random bytes */ |
165 | static u_char getrbyte(void); | 165 | static u_char getrbyte(void); |
166 | 166 | ||
167 | extern char *__progname; | 167 | extern char *__progname; |