Add debug logging to new_thread about GC_threads hash table collisions
authorIvan Maidanski <ivmai@mail.ru>
Thu, 24 Aug 2017 22:05:16 +0000 (01:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 24 Aug 2017 22:05:16 +0000 (01:05 +0300)
commit7d4c5e3e78c47ae64b97c24ba1145b13c1137e26
treef6a5c6180604dd6edc22bcc96d055cc4c6f9970e
parent85fce54e5f3c57c105123de5d4e5f4b027b5eb52
Add debug logging to new_thread about GC_threads hash table collisions

* pthread_support.c [DEBUG_THREADS] (GC_new_thread): Call GC_log_printf
(with the appropriate message) if a GC_threads[] entry already exists
at the given hv index (excluding the detached threads those id is
already reused).
* win32_threads.c [DEBUG_THREADS] (GC_new_thread): Call GC_log_printf
to report that a new thread is created; call GC_log_printf (with the
appropriate message) if a GC_threads[] entry already exists at the
given hv index; remove useless comment about the result of
GC_INTERNAL_MALLOC.
pthread_support.c
win32_threads.c