summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-12-10 20:14:43 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-12-10 20:14:43 +0400
commitded8801538e0dfa1f2f3fd2bfbb7edc3afa7681d (patch)
tree1b91221cf4362ebe9e07c0ae39a16a8246d5546d /alloc.c
parenta88f5da5bf2e3a76859438477a152daed3e2dedc (diff)
downloadbdwgc-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/alloc.c b/alloc.c
index 925c53bb..97f88916 100644
--- a/alloc.c
+++ b/alloc.c
@@ -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 /*, */