Restored Matt's version on gc_test_alloc.c