From b47254ee48a7d354c7678164212af18a383af476 Mon Sep 17 00:00:00 2001 From: otto <> Date: Thu, 10 Jan 2019 18:45:33 +0000 Subject: 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@ --- src/lib/libc/include/thread_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/include') 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 @@ -/* $OpenBSD: thread_private.h,v 1.33 2017/12/05 13:45:31 kettenis Exp $ */ +/* $OpenBSD: thread_private.h,v 1.34 2019/01/10 18:45:33 otto Exp $ */ /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman */ @@ -7,7 +7,7 @@ #include /* for FILE and __isthreaded */ -#define _MALLOC_MUTEXES 4 +#define _MALLOC_MUTEXES 32 void _malloc_init(int); #ifdef __LIBC__ PROTO_NORMAL(_malloc_init); -- cgit v1.2.3-55-g6feb