diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-12-10 20:14:43 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-12-10 20:14:43 +0400 |
commit | ded8801538e0dfa1f2f3fd2bfbb7edc3afa7681d (patch) | |
tree | 1b91221cf4362ebe9e07c0ae39a16a8246d5546d /alloc.c | |
parent | a88f5da5bf2e3a76859438477a152daed3e2dedc (diff) | |
download | bdwgc-ded8801538e0dfa1f2f3fd2bfbb7edc3afa7681d.tar.gz |
Prepend '#' symbol to GC number in logged messages
* alloc.c (GC_maybe_gc, GC_stopped_mark): Put '#' sign in printed
messages preceding GC_gc_no value (to identify it as a collection
number).
* include/private/gc_pmark.h (PUSH_CONTENTS_HDR): Likewise.
* malloc.c (GC_free): Likewise.
* mark.c (GC_mark_from): Likewise.
* thread_local_alloc.c (GC_malloc): Likewise.
Diffstat (limited to 'alloc.c')
-rw-r--r-- | alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -367,7 +367,7 @@ STATIC void GC_maybe_gc(void) # 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); @@ -609,7 +609,7 @@ STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func) # 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) { @@ -638,7 +638,7 @@ STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func) } 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 /*, */ |