# endif
if (GC_need_full_gc || n_partial_gcs >= GC_full_freq) {
GC_COND_LOG_PRINTF(
- "***>Full mark for collection %lu after %lu allocd bytes\n",
+ "***>Full mark for collection #%lu after %lu allocd bytes\n",
(unsigned long)GC_gc_no + 1, (unsigned long)GC_bytes_allocd);
GC_promote_black_lists();
(void)GC_reclaim_all((GC_stop_func)0, TRUE);
# endif
/* Output blank line for convenience here */
GC_COND_LOG_PRINTF(
- "\n--> Marking for collection %lu after %lu allocated bytes\n",
+ "\n--> Marking for collection #%lu after %lu allocated bytes\n",
(unsigned long)GC_gc_no + 1, (unsigned long) GC_bytes_allocd);
# ifdef MAKE_BACK_GRAPH
if (GC_print_back_height) {
}
GC_gc_no++;
- GC_COND_LOG_PRINTF("GC %lu reclaimed %ld bytes --> heapsize: %lu"
+ GC_COND_LOG_PRINTF("GC #%lu reclaimed %ld bytes --> heapsize: %lu"
" bytes" IF_USE_MUNMAP(" (%lu unmapped)") "\n",
(unsigned long)GC_gc_no, (long)GC_bytes_found,
(unsigned long)GC_heapsize /*, */
} \
GC_ASSERT(hhdr == GC_find_header(base)); \
GC_ASSERT(gran_displ % BYTES_TO_GRANULES(hhdr -> hb_sz) == 0); \
- TRACE(source, GC_log_printf("GC:%u: passed validity tests\n", \
+ TRACE(source, GC_log_printf("GC #%u: passed validity tests\n", \
(unsigned)GC_gc_no)); \
SET_MARK_BIT_EXIT_IF_SET(hhdr, gran_displ, exit_label); \
- TRACE(source, GC_log_printf("GC:%u: previously unmarked\n", \
+ TRACE(source, GC_log_printf("GC #%u: previously unmarked\n", \
(unsigned)GC_gc_no)); \
TRACE_TARGET(base, \
- GC_log_printf("GC:%u: marking %p from %p instead\n", \
+ GC_log_printf("GC #%u: marking %p from %p instead\n", \
(unsigned)GC_gc_no, base, source)); \
INCR_MARKS(hhdr); \
GC_STORE_BACK_PTR((ptr_t)source, base); \
/* May get here for pointer to start of block not at */ \
/* beginning of object. If so, it's valid, and we're fine. */ \
GC_ASSERT(high_prod >= 0 && high_prod <= HBLK_OBJS(hhdr -> hb_sz)); \
- TRACE(source, GC_log_printf("GC:%u: passed validity tests\n", \
+ TRACE(source, GC_log_printf("GC #%u: passed validity tests\n", \
(unsigned)GC_gc_no)); \
SET_MARK_BIT_EXIT_IF_SET(hhdr, high_prod, exit_label); \
- TRACE(source, GC_log_printf("GC:%u: previously unmarked\n", \
+ TRACE(source, GC_log_printf("GC #%u: previously unmarked\n", \
(unsigned)GC_gc_no)); \
TRACE_TARGET(base, \
- GC_log_printf("GC:%u: marking %p from %p instead\n", \
+ GC_log_printf("GC #%u: marking %p from %p instead\n", \
(unsigned)GC_gc_no, base, source)); \
INCR_MARKS(hhdr); \
GC_STORE_BACK_PTR((ptr_t)source, base); \
# ifdef ENABLE_TRACE
if ((word)GC_trace_addr >= (word)current_p
&& (word)GC_trace_addr < (word)(current_p + descr)) {
- GC_log_printf("GC:%u Large section; start %p len %lu\n",
+ GC_log_printf("GC #%u: large section; start %p, len %lu\n",
(unsigned)GC_gc_no, current_p, (unsigned long)descr);
}
# endif /* ENABLE_TRACE */
# ifdef ENABLE_TRACE
if ((word)GC_trace_addr >= (word)current_p
&& (word)GC_trace_addr < (word)(current_p + descr)) {
- GC_log_printf("GC:%u Splitting (parallel) %p at %p\n",
+ GC_log_printf("GC #%u: splitting (parallel) %p at %p\n",
(unsigned)GC_gc_no, current_p, current_p + new_size);
}
# endif /* ENABLE_TRACE */
# ifdef ENABLE_TRACE
if ((word)GC_trace_addr >= (word)current_p
&& (word)GC_trace_addr < (word)(current_p + descr)) {
- GC_log_printf("GC:%u Splitting %p at %p\n",
+ GC_log_printf("GC #%u: splitting %p at %p\n",
(unsigned)GC_gc_no, current_p, limit);
}
# endif /* ENABLE_TRACE */
if ((word)GC_trace_addr >= (word)current_p
&& (word)GC_trace_addr < (word)(current_p
+ WORDS_TO_BYTES(WORDSZ-2))) {
- GC_log_printf("GC:%u Tracing from %p bitmap descr %lu\n",
- (unsigned)GC_gc_no, current_p, (unsigned long)descr);
+ GC_log_printf("GC #%u: tracing from %p bitmap descr %lu\n",
+ (unsigned)GC_gc_no, current_p,
+ (unsigned long)descr);
}
# endif /* ENABLE_TRACE */
descr &= ~GC_DS_TAGS;
PREFETCH((ptr_t)current);
# ifdef ENABLE_TRACE
if (GC_trace_addr == current_p) {
- GC_log_printf("GC:%u Considering(3) %p -> %p\n",
- (unsigned)GC_gc_no, current_p, (ptr_t)current);
+ GC_log_printf("GC #%u: considering(3) %p -> %p\n",
+ (unsigned)GC_gc_no, current_p,
+ (ptr_t)current);
}
# endif /* ENABLE_TRACE */
PUSH_CONTENTS((ptr_t)current, mark_stack_top,
if ((word)GC_trace_addr >= (word)current_p
&& GC_base(current_p) != 0
&& GC_base(current_p) == GC_base(GC_trace_addr)) {
- GC_log_printf("GC:%u Tracing from %p proc descr %lu\n",
- (unsigned)GC_gc_no, current_p, (unsigned long)descr);
+ GC_log_printf("GC #%u: tracing from %p, proc descr %lu\n",
+ (unsigned)GC_gc_no, current_p,
+ (unsigned long)descr);
}
# endif /* ENABLE_TRACE */
credit -= GC_PROC_BYTES;
# ifdef ENABLE_TRACE
if ((word)GC_trace_addr >= (word)current_p
&& (word)GC_trace_addr < (word)limit) {
- GC_log_printf("GC:%u Tracing from %p, length is %lu\n",
+ GC_log_printf("GC #%u: Tracing from %p, length is %lu\n",
(unsigned)GC_gc_no, current_p, (unsigned long)descr);
}
# endif /* ENABLE_TRACE */
PREFETCH((ptr_t)current);
# ifdef ENABLE_TRACE
if (GC_trace_addr == current_p) {
- GC_log_printf("GC:%u Considering(1) %p -> %p\n",
+ GC_log_printf("GC #%u: considering(1) %p -> %p\n",
(unsigned)GC_gc_no, current_p, (ptr_t)current);
}
# endif /* ENABLE_TRACE */
/* validity test. */
# ifdef ENABLE_TRACE
if (GC_trace_addr == current_p) {
- GC_log_printf("GC:%u Considering(2) %p -> %p\n",
+ GC_log_printf("GC #%u: considering(2) %p -> %p\n",
(unsigned)GC_gc_no, current_p, (ptr_t)deferred);
}
# endif /* ENABLE_TRACE */