2009-11-07 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Sat, 7 Nov 2009 09:04:33 +0000 (09:04 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:52 +0000 (21:06 +0400)
* win32_threads.c (THREAD_TABLE_SZ): Make the const value prime.

ChangeLog
win32_threads.c

index 5d638f7..a48f098 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-07  Ivan Maidanski <ivmai@mail.ru>
+
+       * win32_threads.c (THREAD_TABLE_SZ): Make the const value prime.
+
 2009-11-06  Ivan Maidanski <ivmai@mail.ru>
 
        * backgraph.c: Remove apostrophe char from "#error".
index 393cedb..a185292 100644 (file)
@@ -309,7 +309,7 @@ STATIC volatile LONG GC_max_thread_index = 0;
 /* This is a chained hash table, with much of the code borrowed */
 /* From the Posix implementation.                               */
 #ifndef THREAD_TABLE_SZ
-# define THREAD_TABLE_SZ 256    /* Must be power of 2   */
+# define THREAD_TABLE_SZ 257    /* Should be prime.     */
 #endif
 STATIC GC_thread GC_threads[THREAD_TABLE_SZ];