Increase the max size of allocations, in prep for a large cache implementation.
authorotto <otto@openbsd.org>
Sun, 9 Jan 2022 07:18:50 +0000 (07:18 +0000)
committerotto <otto@openbsd.org>
Sun, 9 Jan 2022 07:18:50 +0000 (07:18 +0000)
regress/lib/libc/malloc/malloc_general/malloc_general.c

index 7dbaf5d..b243787 100644 (file)
@@ -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>
  *
 #include <stdlib.h>
 #include <string.h>
 
-/* $define VERBOSE */
+/* #define VERBOSE */
 
 #define N 1000
 
 size_t
 size(void)
 {
-       int p = arc4random_uniform(13) + 3;
+       int p = arc4random_uniform(17) + 3;
        return arc4random_uniform(1 << p);
 }