]> granicus.if.org Git - gc/commit
Simplify THREAD_TABLE_INDEX expression for Win32/64
authorIvan Maidanski <ivmai@mail.ru>
Fri, 25 Aug 2017 06:53:07 +0000 (09:53 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 25 Aug 2017 06:53:07 +0000 (09:53 +0300)
commite897b41dcf36148f61ce5ab7e4ec60ab5dae15ce
tree3c3593fdd04b2ac04e89bfefd3f389e5dd9f1ac7
parent7d4c5e3e78c47ae64b97c24ba1145b13c1137e26
Simplify THREAD_TABLE_INDEX expression for Win32/64
(fix commit 85fce54)

Windows thread Id rarely has non-zero highest half of DWORD, so
it is OK to use only the lowest one for hash value computation.

* win32_threads.c (THREAD_TABLE_INDEX): Remove (id>>16) from the
expression.
win32_threads.c