diff options
author | otto <> | 2022-01-09 07:18:50 +0000 |
---|---|---|
committer | otto <> | 2022-01-09 07:18:50 +0000 |
commit | 1332688bca05e7396ac164aafdd58b48c5eaf3c5 (patch) | |
tree | d8bf03ffc14d0a27b79ddbf91e0b9ad8e9e2130b | |
parent | be39b26f1f8f0427388ee6657755f16936ca35a5 (diff) | |
download | openbsd-1332688bca05e7396ac164aafdd58b48c5eaf3c5.tar.gz openbsd-1332688bca05e7396ac164aafdd58b48c5eaf3c5.tar.bz2 openbsd-1332688bca05e7396ac164aafdd58b48c5eaf3c5.zip |
Increase the max size of allocations, in prep for a large cache implementation.
-rw-r--r-- | src/regress/lib/libc/malloc/malloc_general/malloc_general.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c index 7dbaf5d8aa..b243787bcf 100644 --- a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c +++ b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD */ | 1 | /* $OpenBSD: malloc_general.c,v 1.7 2022/01/09 07:18:50 otto Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net> | 3 | * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net> |
4 | * | 4 | * |
@@ -20,14 +20,14 @@ | |||
20 | #include <stdlib.h> | 20 | #include <stdlib.h> |
21 | #include <string.h> | 21 | #include <string.h> |
22 | 22 | ||
23 | /* $define VERBOSE */ | 23 | /* #define VERBOSE */ |
24 | 24 | ||
25 | #define N 1000 | 25 | #define N 1000 |
26 | 26 | ||
27 | size_t | 27 | size_t |
28 | size(void) | 28 | size(void) |
29 | { | 29 | { |
30 | int p = arc4random_uniform(13) + 3; | 30 | int p = arc4random_uniform(17) + 3; |
31 | return arc4random_uniform(1 << p); | 31 | return arc4random_uniform(1 << p); |
32 | } | 32 | } |
33 | 33 | ||