]> granicus.if.org Git - gc/commit
Reduce probability of collision in threads hashtable for 64-bit targets
authorIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2018 18:30:32 +0000 (21:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2018 18:30:32 +0000 (21:30 +0300)
commit553ed5607385e85f30aefe8d60b737b5c232439c
tree52ab430e7ba12acd53e954a80243ff7ee4d652ac
parent66e193b4d6fe3e91562da475952cf83de1438ff6
Reduce probability of collision in threads hashtable for 64-bit targets

* include/private/pthread_support.h [GC_PTHREADS && !GC_WIN32_THREADS
&& CPP_WORDSZ==64] (THREAD_TABLE_INDEX): Xor also 4th byte of id value.
include/private/pthread_support.h