summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--misc.c5
-rw-r--r--tests/test.c2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 979b05ae..65163989 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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,
and refine assertions to handle huge unmergable blocks.
(GC_allochblk_nth): Add comment.
diff --git a/misc.c b/misc.c
index 3b431035..5f3eef6e 100644
--- 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)
diff --git a/tests/test.c b/tests/test.c
index 70130782..059eb10f 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -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()