Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 2010 03:12:03 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216678 - head/sys/kern
Message-ID:  <201012230312.oBN3C3qv042748@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidxu
Date: Thu Dec 23 03:12:03 2010
New Revision: 216678
URL: http://svn.freebsd.org/changeset/base/216678

Log:
  Enlarge hash table for new condition variable.

Modified:
  head/sys/kern/kern_umtx.c

Modified: head/sys/kern/kern_umtx.c
==============================================================================
--- head/sys/kern/kern_umtx.c	Thu Dec 23 01:45:48 2010	(r216677)
+++ head/sys/kern/kern_umtx.c	Thu Dec 23 03:12:03 2010	(r216678)
@@ -205,8 +205,8 @@ struct umtxq_chain {
 			 PRI_MAX_TIMESHARE : (td)->td_user_pri)
 
 #define	GOLDEN_RATIO_PRIME	2654404609U
-#define	UMTX_CHAINS		128
-#define	UMTX_SHIFTS		(__WORD_BIT - 7)
+#define	UMTX_CHAINS		512
+#define	UMTX_SHIFTS		(__WORD_BIT - 9)
 
 #define THREAD_SHARE		0
 #define PROCESS_SHARE		1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012230312.oBN3C3qv042748>