Skip to content

Commit

Permalink
Conditionally compile in GC_trace_object.
Browse files Browse the repository at this point in the history
  • Loading branch information
beard%netscape.com committed Sep 18, 2000
1 parent 08bda0f commit 8dc0e57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gc/boehm/dbg_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ ptr_t p;
PRINT_CALL_CHAIN(ohdr);
}

#if defined(SAVE_CALL_CHAIN)

#include "call_tree.h"

#define CALL_TREE(ohdr) ((call_tree*)ohdr->oh_ci[0].ci_pc)
Expand Down Expand Up @@ -235,7 +237,7 @@ void GC_trace_object(ptr_t p, int verbose)
wend = (word*)((word)wp + scan->oh_sz);
while (wp < wend) {
p = (ptr_t) *wp++;
// if (verbose) GC_err_printf1("\t0x%08lX\n", p);
if (verbose) GC_err_printf1("\t0x%08lX\n", p);
if (IS_PLAUSIBLE_POINTER(p)) {
p = GC_base(p);
if (p && GC_has_debug_info(p)) {
Expand Down Expand Up @@ -279,6 +281,8 @@ void GC_trace_object(ptr_t p, int verbose)
ENABLE_SIGNALS();
}

#endif /* SAVE_CALL_CHAIN */

void GC_debug_print_heap_obj_proc(p)
ptr_t p;
{
Expand Down

0 comments on commit 8dc0e57

Please sign in to comment.