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>
Sun, 8 Oct 2017 10:22:06 +0000 (13:22 +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 d6e99c4..11f2d83 100644 (file)
@@ -1629,6 +1629,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