From: hboehm Date: Thu, 4 Dec 2008 01:45:52 +0000 (+0000) Subject: 2008-12-03 Hans Boehm (Really Ivan Maidansky) X-Git-Tag: gc7_2alpha2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0c4c9522bf1cc685ed3175739366c2c4fffc9f5;p=gc 2008-12-03 Hans Boehm (Really Ivan Maidansky) * blacklst.c (GC_print_source_pointer): Don't call GC_print_heap_obj with lock. --- diff --git a/ChangeLog b/ChangeLog index 1aef3bc8..05201959 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-12-03 Hans Boehm (Really Ivan Maidansky) + * blacklst.c (GC_print_source_pointer): Don't call GC_print_heap_obj + with lock. + 2008-12-01 Hans Boehm * reclaim.c: (GC_reclaim_block): Scan even nearly full blocks if we are checking for leaks. diff --git a/blacklst.c b/blacklst.c index 122c2b91..f75ed901 100644 --- a/blacklst.c +++ b/blacklst.c @@ -74,7 +74,10 @@ STATIC void GC_print_source_ptr(ptr_t p) } } else { GC_err_printf("in object at "); - (*GC_print_heap_obj)(base); + /* FIXME: We can't call the debug version of GC_print_heap_obj */ + /* (with PRINT_CALL_CHAIN) here because the lock is held and */ + /* the world is stopped. */ + GC_default_print_heap_obj_proc(base); } } #endif