Adjust hash function for smaller pthread structure size.
This commit is contained in:
parent
0417d4e3e9
commit
62a2d99ce5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144736
@ -65,7 +65,7 @@ static int inited = 0;
|
|||||||
LIST_HEAD(thread_hash_head, pthread);
|
LIST_HEAD(thread_hash_head, pthread);
|
||||||
#define HASH_QUEUES 128
|
#define HASH_QUEUES 128
|
||||||
static struct thread_hash_head thr_hashtable[HASH_QUEUES];
|
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);
|
static void thr_destroy(struct pthread *curthread, struct pthread *thread);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user