diff options
author | otto <> | 2019-01-10 18:45:33 +0000 |
---|---|---|
committer | otto <> | 2019-01-10 18:45:33 +0000 |
commit | b47254ee48a7d354c7678164212af18a383af476 (patch) | |
tree | 784abc603fef5572b908001bea3c5bbb51d05a25 /src/lib/libc/include | |
parent | 7d5ad0e66b7cd66e61d1d75f07f57890307a72f6 (diff) | |
download | openbsd-b47254ee48a7d354c7678164212af18a383af476.tar.gz openbsd-b47254ee48a7d354c7678164212af18a383af476.tar.bz2 openbsd-b47254ee48a7d354c7678164212af18a383af476.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.h | 4 |
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 |
11 | void _malloc_init(int); | 11 | void _malloc_init(int); |
12 | #ifdef __LIBC__ | 12 | #ifdef __LIBC__ |
13 | PROTO_NORMAL(_malloc_init); | 13 | PROTO_NORMAL(_malloc_init); |