diff options
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_general/malloc_general.c')
| -rw-r--r-- | src/regress/lib/libc/malloc/malloc_general/malloc_general.c | 10 | 
1 files changed, 8 insertions, 2 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 b243787bcf..b0387ce64e 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: malloc_general.c,v 1.7 2022/01/09 07:18:50 otto Exp $ */ | 1 | /* $OpenBSD: malloc_general.c,v 1.8 2025/10/26 21:25:12 miod Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net> | 3 | * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net> | 
| 4 | * | 4 | * | 
| @@ -24,6 +24,12 @@ | |||
| 24 | 24 | ||
| 25 | #define N 1000 | 25 | #define N 1000 | 
| 26 | 26 | ||
| 27 | #if defined(_LP64) | ||
| 28 | #define COUNT 800000 | ||
| 29 | #else | ||
| 30 | #define COUNT 20000 | ||
| 31 | #endif | ||
| 32 | |||
| 27 | size_t | 33 | size_t | 
| 28 | size(void) | 34 | size(void) | 
| 29 | { | 35 | { | 
| @@ -59,7 +65,7 @@ main(int argc, char *argv[]) | |||
| 59 | void * q; | 65 | void * q; | 
| 60 | size_t sz; | 66 | size_t sz; | 
| 61 | 67 | ||
| 62 | for (count = 0; count < 800000; count++) { | 68 | for (count = 0; count < COUNT; count++) { | 
| 63 | if (count % 10000 == 0) { | 69 | if (count % 10000 == 0) { | 
| 64 | printf("."); | 70 | printf("."); | 
| 65 | fflush(stdout); | 71 | fflush(stdout); | 
