summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhboehm <hboehm>2008-02-20 22:27:57 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:42 +0400
commitded8d688b3a1ac6dd17026c0aff9cc8e5ff69f52 (patch)
treeef0fe9f4b3ee2fd2529f01b66445033bd5c9f4d9
parentb381c0a0d59bb2cffde9a8a6f4919c5454ac9e84 (diff)
downloadbdwgc-ded8d688b3a1ac6dd17026c0aff9cc8e5ff69f52.tar.gz
2008-02-20 Hans Boehm <Hans.Boehm@hp.com>gc7_1alpha3-20080220
* tests/test.c (run_one_test): Don't mention pthread_self(). * misc.c: Declare GC_thr_init().
-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()