2009-11-05 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Thu, 5 Nov 2009 15:44:07 +0000 (15:44 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:51 +0000 (21:06 +0400)
* pthread_support.c (GC_inner_start_routine): Join 3 sequential
GC_printf() calls into a single one (for DEBUG_THREADS).

ChangeLog
pthread_support.c

index 0698d65..6260649 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-11-05  Ivan Maidanski <ivmai@mail.ru>
 
+       * pthread_support.c (GC_inner_start_routine): Join 3 sequential
+       GC_printf() calls into a single one (for DEBUG_THREADS).
+
+2009-11-05  Ivan Maidanski <ivmai@mail.ru>
+
        * include/private/gc_priv.h (GC_total_stacksize): New variable
        declaration (only if THREADS).
        * alloc.c (GC_total_stacksize): New variable (only if THREADS).
index 84aa89f..e2e0900 100644 (file)
@@ -1195,9 +1195,8 @@ STATIC void * GC_CALLBACK GC_inner_start_routine(struct GC_stack_base *sb,
 
     my_pthread = pthread_self();
 #   ifdef DEBUG_THREADS
-        GC_printf("Starting thread 0x%x\n", (unsigned)my_pthread);
-        GC_printf("pid = %ld\n", (long) getpid());
-        GC_printf("sp = %p\n", &arg);
+        GC_printf("Starting thread 0x%x, pid = %ld, sp = %p\n",
+                  (unsigned)my_pthread, (long) getpid(), &arg);
 #   endif
     LOCK();
     me = GC_register_my_thread_inner(sb, my_pthread);