]> granicus.if.org Git - gc/commitdiff
Print realloc_count in gctest
authorIvan Maidanski <ivmai@mail.ru>
Sun, 8 Oct 2017 10:22:06 +0000 (13:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 12 Oct 2017 05:44:51 +0000 (08:44 +0300)
Without this patch, realloc_count value is never used.

* tests/test.c (check_heap_stats): Print realloc_count value (after
printing other count variables).

tests/test.c

index 1814cbcd1332913b1dbdc7eb324a855a7cad14fd..f3528c3ed2d3eeeecb8b96d294c4916436442050 100644 (file)
@@ -1643,6 +1643,7 @@ void check_heap_stats(void)
                   uncollectable_count);
     GC_printf("Allocated %d atomic objects\n", atomic_count);
     GC_printf("Allocated %d stubborn objects\n", stubborn_count);
+    GC_printf("Reallocated %d objects\n", realloc_count);
     GC_printf("Finalized %d/%d objects - ",
                   finalized_count, finalizable_count);
 #   ifndef GC_NO_FINALIZATION