]> granicus.if.org Git - gc/commitdiff
2008-02-20 Hans Boehm <Hans.Boehm@hp.com> gc7_1alpha3-20080220
authorhboehm <hboehm>
Wed, 20 Feb 2008 22:27:57 +0000 (22:27 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:42 +0000 (21:06 +0400)
* tests/test.c (run_one_test): Don't mention pthread_self().
* misc.c: Declare GC_thr_init().

ChangeLog
misc.c
tests/test.c

index 979b05ae7133b17b2f21d1c95249185775b3f85d..651639893e7a7f99c897255822f09fc7275e2239 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-20  Hans Boehm <Hans.Boehm@hp.com>
+
+       * tests/test.c (run_one_test): Don't mention pthread_self().
+       * misc.c: Declare GC_thr_init().
+
 2008-02-20  Hans Boehm <Hans.Boehm@hp.com>
 
        * allchblk.c (add_to_fl): disable assertions with USE_MUNMAP,
diff --git a/misc.c b/misc.c
index 3b4310352d30aca312c1df83227e6a1de791cb0f..5f3eef6e17869151112ca49eddc000489f54488a 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -423,7 +423,6 @@ void GC_init(void)
 
 extern void GC_setpagesize();
 
-
 #ifdef MSWIN32
 extern GC_bool GC_no_win32_dlls;
 #else
@@ -468,6 +467,10 @@ static void maybe_install_looping_handler()
 
 #endif
 
+#if defined(GC_PTHREADS) || defined(GC_WIN32_THREADS)
+  void GC_thr_init(void);
+#endif
+
 void GC_init_inner()
 {
 #   if !defined(THREADS) && defined(GC_ASSERTIONS)
index 70130782fcdd996cf1f6b7febee6e48a3e59d02e..059eb10fffecb623881300f2991b39b432341e37 100644 (file)
@@ -1208,7 +1208,7 @@ void run_one_test()
       }
 #   endif
     if (GC_print_stats)
-      GC_log_printf("Finished %x\n", pthread_self());
+      GC_log_printf("Finished %p\n", &start_time);
 }
 
 void check_heap_stats()