artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1a56a
)
Increase the max size of allocations, in prep for a large cache implementation.
author
otto
<otto@openbsd.org>
Sun, 9 Jan 2022 07:18:50 +0000
(07:18 +0000)
committer
otto
<otto@openbsd.org>
Sun, 9 Jan 2022 07:18:50 +0000
(07:18 +0000)
regress/lib/libc/malloc/malloc_general/malloc_general.c
patch
|
blob
|
history
diff --git
a/regress/lib/libc/malloc/malloc_general/malloc_general.c
b/regress/lib/libc/malloc/malloc_general/malloc_general.c
index
7dbaf5d
..
b243787
100644
(file)
--- a/
regress/lib/libc/malloc/malloc_general/malloc_general.c
+++ b/
regress/lib/libc/malloc/malloc_general/malloc_general.c
@@
-1,4
+1,4
@@
-/* $OpenBSD
*/
+/* $OpenBSD
: malloc_general.c,v 1.7 2022/01/09 07:18:50 otto Exp $
*/
/*
* Copyright (c) 2017 Otto Moerbeek <otto@drijf.net>
*
@@
-20,14
+20,14
@@
#include <stdlib.h>
#include <string.h>
-/*
$
define VERBOSE */
+/*
#
define VERBOSE */
#define N 1000
size_t
size(void)
{
- int p = arc4random_uniform(1
3
) + 3;
+ int p = arc4random_uniform(1
7
) + 3;
return arc4random_uniform(1 << p);
}