summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2009-03-01 01:20:14 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:44 +0200
commitee6104254324ccb8728cca74b866c5b26d481cfc (patch)
treeaa419b7c1a748105785feca4a00dbee3c2eaadef /reclaim.c
parent6aed8bc60c99a11ab94c8dca3b7ca15926f10c4b (diff)
2009-02-28 Hans Boehm <Hans.Boehm@hp.com> (Mostly Ivan Maidansky)
* allchblk.c, backgraph.c, dbg_mlc.c, dyn_load.c, finalize.c, include/private/gc_pmark.h, malloc.c, mark.c, os_dep.c, pthread_stop_world.c, pthread_support.c, reclaim.c, thread_local_alloc.c. * misc.s: Refine comment. 2009-02-28 Hans Boehm <Hans.Boehm@hp.com> * os_dep.c: Define GC_GWW_BUF_LEN more intelligently. Add FIXME comment.
Diffstat (limited to 'reclaim.c')
-rw-r--r--reclaim.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/reclaim.c b/reclaim.c
index 30e97de..fd4521d 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -403,12 +403,11 @@ STATIC void GC_print_block_descr(struct hblk *h,
unsigned n_marks = GC_n_set_marks(hhdr);
if (hhdr -> hb_n_marks != n_marks) {
- GC_printf("(%u:%u,%u!=%u)", hhdr -> hb_obj_kind,
- bytes,
- hhdr -> hb_n_marks, n_marks);
+ GC_printf("(%u:%u,%u!=%u)", hhdr -> hb_obj_kind, (unsigned)bytes,
+ (unsigned)hhdr -> hb_n_marks, n_marks);
} else {
GC_printf("(%u:%u,%u)", hhdr -> hb_obj_kind,
- bytes, n_marks);
+ (unsigned)bytes, n_marks);
}
bytes += HBLKSIZE-1;
bytes &= ~(HBLKSIZE-1);
@@ -442,10 +441,10 @@ void GC_print_free_list(int kind, size_t sz_in_granules)
while (flh){
struct hblk *block = HBLKPTR(flh);
if (block != lastBlock){
- GC_printf("\nIn heap block at 0x%x:\n\t", block);
+ GC_printf("\nIn heap block at %p:\n\t", block);
lastBlock = block;
}
- GC_printf("%d: 0x%x;", ++n, flh);
+ GC_printf("%d: %p;", ++n, flh);
flh = obj_link(flh);
}
}