summaryrefslogtreecommitdiff
path: root/src/lib/libc/include
diff options
context:
space:
mode:
authorotto <>2019-01-10 18:45:33 +0000
committerotto <>2019-01-10 18:45:33 +0000
commit93282eac7fa28695cb6880305f3757cbff94eca0 (patch)
tree784abc603fef5572b908001bea3c5bbb51d05a25 /src/lib/libc/include
parent53a08038276bcb782cad1b1570869ebd51d96455 (diff)
downloadopenbsd-93282eac7fa28695cb6880305f3757cbff94eca0.tar.gz
openbsd-93282eac7fa28695cb6880305f3757cbff94eca0.tar.bz2
openbsd-93282eac7fa28695cb6880305f3757cbff94eca0.zip
Make the "not my pool" searching loop a tiny bit smarter, while
making the number of pools variable. Do not document the malloc conf settings atm, don't know yet if they will stay. Thanks to all the testers. ok deraadt@
Diffstat (limited to 'src/lib/libc/include')
-rw-r--r--src/lib/libc/include/thread_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/include/thread_private.h b/src/lib/libc/include/thread_private.h
index ae8d554a8a..774e0cba1f 100644
--- a/src/lib/libc/include/thread_private.h
+++ b/src/lib/libc/include/thread_private.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: thread_private.h,v 1.33 2017/12/05 13:45:31 kettenis Exp $ */ 1/* $OpenBSD: thread_private.h,v 1.34 2019/01/10 18:45:33 otto Exp $ */
2 2
3/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ 3/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
4 4
@@ -7,7 +7,7 @@
7 7
8#include <stdio.h> /* for FILE and __isthreaded */ 8#include <stdio.h> /* for FILE and __isthreaded */
9 9
10#define _MALLOC_MUTEXES 4 10#define _MALLOC_MUTEXES 32
11void _malloc_init(int); 11void _malloc_init(int);
12#ifdef __LIBC__ 12#ifdef __LIBC__
13PROTO_NORMAL(_malloc_init); 13PROTO_NORMAL(_malloc_init);