From d5f231a99dfec5d7d665452ec0798f061b3462c7 Mon Sep 17 00:00:00 2001 From: otto <> Date: Fri, 3 Oct 2008 19:31:49 +0000 Subject: reduce rbyte cache to 512 bytes, no measurable slowdown (even in the threaded case) but much smaller working set; prompted by and ok deraadt@ --- src/lib/libc/stdlib/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') 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 @@ -/* $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; -- cgit v1.2.3-55-g6feb