diff options
author | 2008-10-03 19:31:49 +0000 | |
---|---|---|
committer | 2008-10-03 19:31:49 +0000 | |
commit | e6f339a72ef5f4a5d190db7b7ea3a53221d02ff7 (patch) | |
tree | 417d2b41e30bbcfcf81d4e4b6c2a1a88af182ded /lib/libc/stdlib/malloc.c | |
parent | beef up the description of -D a little, and don;t imply the (diff) | |
download | wireguard-openbsd-e6f339a72ef5f4a5d190db7b7ea3a53221d02ff7.tar.xz wireguard-openbsd-e6f339a72ef5f4a5d190db7b7ea3a53221d02ff7.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 'lib/libc/stdlib/malloc.c')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
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; |