summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-17 06:43:26 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:47 +0400
commit5295d021b4d6a02d167c891f2922fb02eb281296 (patch)
treec4675810c1d2c0c2415f1d46445e700670a836b5 /allchblk.c
parenta907f73c0dab266a1e072668c59b2a856f8259e7 (diff)
downloadbdwgc-5295d021b4d6a02d167c891f2922fb02eb281296.tar.gz
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 'allchblk.c')
-rw-r--r--allchblk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/allchblk.c b/allchblk.c
index 85cba94b..f6a0f4ee 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -713,7 +713,7 @@ GC_allochblk_nth(size_t sz, int kind, unsigned flags, int n, GC_bool may_split)
if (++GC_large_alloc_warn_suppressed
>= GC_large_alloc_warn_interval) {
WARN("Repeated allocation of very large block "
- "(appr. size %ld):\n"
+ "(appr. size %" GC_PRIdPTR "):\n"
"\tMay lead to memory leak and poor performance.\n",
size_needed);
GC_large_alloc_warn_suppressed = 0;