]> granicus.if.org Git - gc/commitdiff
2008-12-03 Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidansky)
authorhboehm <hboehm>
Thu, 4 Dec 2008 01:45:52 +0000 (01:45 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:44 +0000 (21:06 +0400)
* blacklst.c (GC_print_source_pointer): Don't call GC_print_heap_obj
with lock.

ChangeLog
blacklst.c

index 1aef3bc863c601f41318024eae04161eddeb2370..052019591edbcfe73c2455e033adac8134898227 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-03  Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidansky)
+       * blacklst.c (GC_print_source_pointer): Don't call GC_print_heap_obj
+       with lock.
+
 2008-12-01  Hans Boehm <Hans.Boehm@hp.com>
        * reclaim.c: (GC_reclaim_block): Scan even nearly full blocks
        if we are checking for leaks.
index 122c2b9157dcc6702323b41cda8ee8d5c00795ac..f75ed901f648ef8aeb098c84f03432f04657f3f9 100644 (file)
@@ -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