summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-11-07 10:04:33 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:52 +0200
commita836a59858044e4bb2e9dc6fd3ea0b7ff3676bfc (patch)
treed661bd1ea88fefc775159c94a315bc52acaa4f84 /win32_threads.c
parentb01e736701a8ac498919b255917ed9c8ad302118 (diff)
2009-11-07 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c (THREAD_TABLE_SZ): Make the const value prime.
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 393cedb..a185292 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -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];