Allow tweaking GC info dump on exit from an environment variable.

main
theraven 15 years ago
parent c6fc399a73
commit 5e60899d8e

@ -448,7 +448,10 @@ static void init(void)
{
GC_INIT();
// Dump GC stats on exit - uncomment when debugging.
//atexit(GC_dump);
if (getenv("LIBOBJC_DUMP_GC_STATUS_ON_EXIT"))
{
atexit(GC_dump);
}
refcounts = refcount_create(4096);
GC_clear_roots();
}

Loading…
Cancel
Save