summaryrefslogtreecommitdiff
path: root/backgraph.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-11 15:27:30 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:59 +0200
commit50ec4c5ca243cc90403b1e399f2b4272887f2e93 (patch)
treeea53260d2411181186ae79033f0bd600a8dbd4e5 /backgraph.c
parent3c60adf047fe57b0edff8dc5aa456b7e72e89cef (diff)
2011-05-11 Ivan Maidanski <ivmai@mail.ru>
* backgraph.c (add_edge): Recognize DEBUG_PRINT_BIG_N_EDGES macro. * os_dep.c (GC_set_and_save_fault_handler): Recognize SIGACTION_FLAGS_NODEFER_HACK macro. * pthread_support.c (mark_mutex): Recognize GLIBC_2_1_MUTEX_HACK macro. * pthread_support.c (GC_acquire_mark_lock): Remove commented out code. * include/gc_inline.h (GC_MALLOC_WORDS, GC_MALLOC_ATOMIC_WORDS, GC_CONS): Remove trailing space (before back-slash). * include/private/gc_hdrs.h (GET_BI, GET_HDR_ADDR): Ditto. * include/private/gc_pmark.h (PUSH_OBJ, PUSH_CONTENTS, SET_MARK_BIT_EXIT_IF_SET, LONG_MULT, PUSH_CONTENTS_HDR, GC_PUSH_ONE_STACK, GC_PUSH_ONE_HEAP): Ditto. * include/private/thread_local_alloc.h (GC_key_create): Ditto. * include/private/gc_priv.h (SUNOS5SIGS): Don't include sys/siginfo.h on Linux. * include/private/gcconfig.h: Reformat comments (and some code). * include/private/gcconfig.h (FORCE_WRITE_PREFETCH): New macro recognized, force PREFETCH_FOR_WRITE to be defined on x86. * include/private/gcconfig.h (USE_HPUX_FIXED_STACKBOTTOM): New macro recognized (for HP/UX).
Diffstat (limited to 'backgraph.c')
-rw-r--r--backgraph.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/backgraph.c b/backgraph.c
index 60d000c..60a9e0f 100644
--- a/backgraph.c
+++ b/backgraph.c
@@ -254,14 +254,12 @@ static void add_edge(ptr_t p, ptr_t q)
}
be_cont -> edges[i] = p;
be -> n_edges++;
- if (be -> n_edges == 100) {
-# if 0
- if (GC_print_stats) {
- GC_err_printf("The following object has in-degree >= 100:\n");
- GC_print_heap_obj(q);
- }
-# endif
- }
+# ifdef DEBUG_PRINT_BIG_N_EDGES
+ if (GC_print_stats == VERBOSE && be -> n_edges == 100) {
+ GC_err_printf("The following object has big in-degree:\n");
+ GC_print_heap_obj(q);
+ }
+# endif
}
typedef void (*per_object_func)(ptr_t p, size_t n_bytes, word gc_descr);