summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-17 08:43:26 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:47 +0200
commit5295d021b4d6a02d167c891f2922fb02eb281296 (patch)
treec4675810c1d2c0c2415f1d46445e700670a836b5 /pthread_stop_world.c
parenta907f73c0dab266a1e072668c59b2a856f8259e7 (diff)
2009-09-17 Ivan Maidanski <ivmai@mail.ru>
(ivmai139.diff) * allchblk.c (GC_allochblk_nth): Use GC_PRIdPTR in WARN() format string. * pthread_support.c (start_mark_threads, GC_thr_init): Ditto. * win32_threads.c (GC_delete_thread): Ditto. * include/private/gc_priv.h (GC_PRIdPTR): New macro. * pthread_stop_world.c (GC_suspend_handler_inner): Remove unnecessary cast for WARN argument. * pthread_support.c (start_mark_threads): if pthread_create() failed then don't try to create other marker threads and (after printing a warning) adjust GC_markers and GC_parallel values; log GC_markers value (possibly adjusted) after that.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r--pthread_stop_world.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index ae1d225..6494080 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -169,8 +169,7 @@ STATIC void GC_suspend_handler_inner(ptr_t sig_arg, void *context)
if (me -> stop_info.last_stop_count == my_stop_count) {
/* Duplicate signal. OK if we are retrying. */
if (!GC_retry_signals) {
- WARN("Duplicate suspend signal in thread %p\n",
- (word)pthread_self());
+ WARN("Duplicate suspend signal in thread %p\n", pthread_self());
}
return;
}