diff options
| author | otto <> | 2022-01-09 07:18:50 +0000 |
|---|---|---|
| committer | otto <> | 2022-01-09 07:18:50 +0000 |
| commit | 42f5a05492cea7c6f70c2887c5846c0bde6d621b (patch) | |
| tree | d8bf03ffc14d0a27b79ddbf91e0b9ad8e9e2130b /src | |
| parent | 1d65cb0d3a77508bfc0bdcbc93feeea4c4cb6c2a (diff) | |
| download | openbsd-42f5a05492cea7c6f70c2887c5846c0bde6d621b.tar.gz openbsd-42f5a05492cea7c6f70c2887c5846c0bde6d621b.tar.bz2 openbsd-42f5a05492cea7c6f70c2887c5846c0bde6d621b.zip | |
Increase the max size of allocations, in prep for a large cache implementation.
Diffstat (limited to 'src')
| -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 | ||
