Make logged info of GC_stopped_mark and GC_print_heap_sects more compact
authorIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jan 2012 04:01:06 +0000 (08:01 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jan 2012 07:01:33 +0000 (11:01 +0400)
* alloc.c (GC_stopped_mark, GC_print_heap_sects): Make output of
GC_log_printf (printing amount of reclaimed memory and total heap
size) more compact (to fit into 80-characters line for reasonable
values).

alloc.c

diff --git a/alloc.c b/alloc.c
index dc4ddeb..8e83262 100644 (file)
--- a/alloc.c
+++ b/alloc.c
@@ -648,7 +648,7 @@ STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func)
 
     GC_gc_no++;
     if (GC_print_stats) {
-      GC_log_printf("Collection %lu reclaimed %ld bytes ---> heapsize = %lu"
+      GC_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 /*, */
@@ -900,7 +900,7 @@ STATIC void GC_finish_collection(void)
     }
 
     if (GC_print_stats == VERBOSE) {
-      GC_log_printf("Immediately reclaimed %ld bytes in heap of size"
+      GC_log_printf("Immediately reclaimed %ld bytes, heapsize:"
                     " %lu bytes" IF_USE_MUNMAP(" (%lu unmapped)") "\n",
                     (long)GC_bytes_found, (unsigned long)GC_heapsize /*, */
                     COMMA_IF_USE_MUNMAP((unsigned long)GC_unmapped_bytes));