From b6bccaf8a3109ce8ddaca26b2149b25781a2ca33 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 31 Jan 2012 08:01:06 +0400 Subject: [PATCH] Make logged info of GC_stopped_mark and GC_print_heap_sects more compact * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alloc.c b/alloc.c index dc4ddeb3..8e83262a 100644 --- 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)); -- 2.40.0