summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-04-26 13:19:07 +0000
committerkris <kris@FreeBSD.org>2008-04-26 13:19:07 +0000
commit4a87c82b19ca031a0e28d32a971c9901e526c2a6 (patch)
treeb247a7973a8548756e59ff5aeab7380a422fad44 /lib/libthr/thread/thr_mutex.c
parent150f1de0cf1e2342ec39b72b7c3969d252db3032 (diff)
downloadFreeBSD-src-4a87c82b19ca031a0e28d32a971c9901e526c2a6.zip
FreeBSD-src-4a87c82b19ca031a0e28d32a971c9901e526c2a6.tar.gz
Increase the default MUTEX_ADAPTIVE_SPINS to 2000, after further
testing it turns out 200 was too short to give good adaptive performance. Reviewed by: jeff MFC after: 1 week
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index a3f6c1d..0f593f0 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -69,7 +69,7 @@
* For adaptive mutexes, how many times to spin doing trylock2
* before entering the kernel to block
*/
-#define MUTEX_ADAPTIVE_SPINS 200
+#define MUTEX_ADAPTIVE_SPINS 2000
/*
* Prototypes
OpenPOWER on IntegriCloud