Browse Source

reduce rbyte cache to 512 bytes, no measurable slowdown (even in the

threaded case) but much smaller working set; prompted by and ok deraadt@
OPENBSD_4_5
otto 15 years ago
parent
commit
b0a0d24cc7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/stdlib/malloc.c

+ 2
- 2
src/lib/libc/stdlib/malloc.c View File

@ -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;


Loading…
Cancel
Save