summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-04-07 06:09:17 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-04-07 06:09:17 +0000
commit22b6b1a4cfc84b33797eb55466afb863d4dc8b82 (patch)
tree37dd5cced67cee3b86cff99b234a9a105859ef5f /lib
parent90a823ed9261212bea6160593fb2c7472be30db4 (diff)
downloadFreeBSD-src-22b6b1a4cfc84b33797eb55466afb863d4dc8b82.zip
FreeBSD-src-22b6b1a4cfc84b33797eb55466afb863d4dc8b82.tar.gz
Adjust hash function for smaller pthread structure size.
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_list.c b/lib/libthr/thread/thr_list.c
index 6fb228b..06d14e8 100644
--- a/lib/libthr/thread/thr_list.c
+++ b/lib/libthr/thread/thr_list.c
@@ -65,7 +65,7 @@ static int inited = 0;
LIST_HEAD(thread_hash_head, pthread);
#define HASH_QUEUES 128
static struct thread_hash_head thr_hashtable[HASH_QUEUES];
-#define THREAD_HASH(thrd) (((unsigned long)thrd >> 12) % HASH_QUEUES)
+#define THREAD_HASH(thrd) (((unsigned long)thrd >> 8) % HASH_QUEUES)
static void thr_destroy(struct pthread *curthread, struct pthread *thread);
OpenPOWER on IntegriCloud