}
collectable_count += 1;
if (GC_size(GC_malloc(0)) != MIN_WORDS * sizeof(GC_word)) {
- GC_printf("GC_malloc(0) failed: GC_size returns %ld\n",
+ GC_printf("GC_malloc(0) failed: GC_size returns %lu\n",
(unsigned long)GC_size(GC_malloc(0)));
FAIL;
}
# ifdef THREADS
GC_unregister_my_thread(); /* just to check it works (for main) */
# endif
- GC_printf("Collector appears to work\n");
+ GC_printf("Completed %u collections", (unsigned)GC_get_gc_no());
+# ifdef PARALLEL_MARK
+ GC_printf(" (using %d marker threads)", GC_get_parallel() + 1);
+# endif
+ GC_printf("\n" "Collector appears to work\n");
}
#if defined(MACOS)
check_heap_stats();
(void)fflush(stdout);
pthread_attr_destroy(&attr);
- GC_printf("Completed %u collections\n", (unsigned)GC_get_gc_no());
# ifdef PTW32_STATIC_LIB
pthread_win32_thread_detach_np ();
pthread_win32_process_detach_np ();