summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pthread_support.c6
-rw-r--r--win32_threads.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/pthread_support.c b/pthread_support.c
index 1c51e6b1..7d758346 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -742,7 +742,8 @@ GC_INNER_WIN32THREAD void GC_delete_thread(thread_id_t id)
GC_thread p;
GC_thread prev = NULL;
-# ifdef DEBUG_THREADS
+# if defined(DEBUG_THREADS) && !defined(MSWINCE) \
+ && (!defined(MSWIN32) || defined(CONSOLE_LOG))
GC_log_printf("Deleting thread %p, n_threads= %d\n",
(void *)(signed_word)id, GC_count_threads());
# endif
@@ -826,7 +827,8 @@ GC_INNER_WIN32THREAD void GC_delete_thread(thread_id_t id)
# ifdef GC_DARWIN_THREADS
mach_port_deallocate(mach_task_self(), p -> mach_thread);
# endif
-# ifdef DEBUG_THREADS
+# if defined(DEBUG_THREADS) && !defined(MSWINCE) \
+ && (!defined(MSWIN32) || defined(CONSOLE_LOG))
GC_log_printf("Deleted thread %p, n_threads= %d\n",
(void *)(signed_word)id, GC_count_threads());
# endif
diff --git a/win32_threads.c b/win32_threads.c
index 4ff7c9cb..c60a2592 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -396,7 +396,8 @@ STATIC void GC_suspend(GC_thread t)
# endif
# endif
-# ifdef DEBUG_THREADS
+# if defined(DEBUG_THREADS) && !defined(MSWINCE) \
+ && (!defined(MSWIN32) || defined(CONSOLE_LOG))
GC_log_printf("Suspending 0x%x\n", (int)t->id);
# endif
GC_win32_unprotect_thread(t);